s0c0 Posted September 25, 2010 Share Posted September 25, 2010 This might be better for the Apache forum, but I'll explain anyways. I'm switching up my local dev environment so I can use SVN. I have a directory for all my SVN stuff on my local machine now in /var/svn. When I call $_SERVER['DOCUMENT_ROOT'] its listing the document root as /var/www. For this alias I've setup in apache I want the document root to be /var/svn/myproject. Alot of my includes are failing because of this now. Quote Link to comment Share on other sites More sharing options...
s0c0 Posted September 25, 2010 Author Share Posted September 25, 2010 I fixed this by creating a new virtual host and telling apache to listen on a new port. in /etc/apache2/sites-available/default: <VirtualHost *:8080> ServerAdmin webmaster@localhost ServerName 127.0.0.1 DocumentRoot /var/svn/client ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, crit,alert, emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined </VirtualHost> in /etc/apache2/ports.conf NameVirtualHost *:80 NameVirtualHost *:8080 Listen 80 Listen 8080 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.