Not exactly sure how to ask the question so please correct my flaws. I want to create two separate http web processing environments on a debian box for web development. Right now everything is processed in /var/www and I access it at http://localhost. I need a second location that works exactly like /var/www , but is independent so I can work with a different .htaccess file. How can I configure apache2 to use a new location, and then what address do I use to access it?
|
feedback
|
|
As usual, there are many ways to achieve this. One way would be to create a subfolder (either beneath /var/www or anywhere else) to hold all the files. Then copy /etc/apache2/sites-available/default to /etc/apache2/sites-available/newname and edit it. Set the Servername to whatever you want it to be, and point the DocumentRoot to the new folder you created. Next, enable the new site by running | |||||
feedback
|
|
You could create a second name-based virtual host, add its | |||
|
feedback
|