Forum Moderators: phranque

Message Too Old, No Replies

Setting the Root for Individual Folders

         

mellonstock

2:40 pm on Aug 11, 2007 (gmt 0)

10+ Year Member



I've set up a development server on Windows XP Home using Apache 2.2. 127.0.0.1:8080 points to a C:/websites folder which contains the folders for many websites.

The problem is a relative link in an individual site is pointing at C:/websites and not C:/websites/website/.

From what I read, I need to create a user for each folder and access it like 127.0.0.1:8080/~foldername/. I was just wondering if there was another way since this isn't a production server and I won't have multiple users.

jdMorgan

6:15 pm on Aug 11, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Each VirtualHost in your httpd.conf file can and should define its own "DocumentRoot".

See the Apache Virtual Hosts [httpd.apache.org] documentation for directives, syntax, and examples of common virtual hosting configurations.

Jim