Add other folders to the virtual server, EXTERNAL to www
Posted by: lyllo (---.15-79-b.business.telecomitalia.it)
Date: January 19, 2009 12:10PM

hello guys.
since i'm running wamp server to run a private office server i'd like to know if it would be possible to add futher folders in some config file in order to be seen from the server itself.
i have installed wamp server in C:\
the server is configured to have a Folder called MySite in which are stored all the server pages.
now i would like to let a generic "C:\OtherFolder" be visible in the server.
so if i create a link <a href='c:\OtherFolder\myfile.pdf">Click here to view</a> i can open it via borwser.
at the moment not being set up in any config file i obvusly recive a 404 error message.

is there any way i can do that?

thank you.

Options: ReplyQuote
Re: Add other folders to the virtual server, EXTERNAL to www
Posted by: lyllo (---.15-79-b.business.telecomitalia.it)
Date: January 19, 2009 12:24PM

please note that the folders i need to link to are OUTSIDE to the "www" one

Options: ReplyQuote
Re: Add other folders to the virtual server, EXTERNAL to www
Posted by: toivo (203.19.130.---)
Date: January 19, 2009 12:27PM

If you look at the Apache configuration file conf/httpd.conf, you see line like this close to the end of the file:

# Virtual hosts
#Include conf/extra/httpd-vhosts.conf

In the configuration files in the extra folder you can define virtual hosts which can be in other folders or drives but you need to use the <directory> directive in your virtual host settings.

Regards,

toivo
Sydney, Australia

Options: ReplyQuote
Re: Add other folders to the virtual server, EXTERNAL to www
Posted by: lyllo (---.15-79-b.business.telecomitalia.it)
Date: January 19, 2009 12:30PM

so i just would add
<directory>
c:\OtherFolder
</directory>
and restart, and the everything would work fine?

Options: ReplyQuote
Re: Add other folders to the virtual server, EXTERNAL to www
Posted by: lyllo (---.15-79-b.business.telecomitalia.it)
Date: January 19, 2009 12:45PM

i'm trying to modify the httpd-vhosts to link to another folder but it is not found sad smiley



<VirtualHost *:80>
ServerName rj-server
DocumentRoot C:/Users/Public
ErrorLog C:/wamp/www/logs/error_pubblica.log
CustomLog C:/wamp/www/logs/access_pubblica.log common
</VirtualHost>

Options: ReplyQuote
Re: Add other folders to the virtual server, EXTERNAL to www
Posted by: yfastud (Moderator)
Date: January 19, 2009 05:08PM


Options: ReplyQuote


Sorry, only registered users may post in this forum.