Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

httpdocs and httpsdocs

Status
Not open for further replies.

acidbrain

Technical User
Sep 2, 2002
67
RO
Hi there.
Got a lil question:
On a unix server i have 2 folders: httpdocs and httpsdocs.
What do i have to do when i ulpoad a picture in httpdocs, the certain picture to be seen in httpsdocs too. Do i have to upload that picture in the httpsdocs folder too?
For example i have a "test.jpg" in my httpdocs. The link i give in the browser is: If i give the browser i can't see the picture. Do i have to upload that "test.jpg" in both folders or is there another way to make this work?? I've Seen this thing work but dunno how to do it.

Thanks,
 
In your httpd.conf you probably have a virtualhost for the SSL stuff and another vhost(or the default vhost) for the non-ssl stuff.

Change the DocumentRoot option for the SSL host to match that for the non-ssl host.

This will have them both point to the same directory.
 
Thanks for the tip but i looked up httpd.conf and didn't find anything similar. I did something else instead.. erased the httpsdocs made a link "ln" :

ln -s httpdocs httpsdocs
edited rights for httpsdocs so these should be as they were before i erased the directory (chmod+chown)and that's it. It worked and it still works :)

Tnahks alot for your tip.
 
Check your httpd.conf for a line that starts 'Include'. Somewhere you have another host (otherwise you could not have dual documentroots). ln will work but its not portable and will cause trouble later in any sort of production environment with more then 2 developers.

Glad you got it working though!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top