Hi all, My apache .conf file has been set up with a number of VirtualHost entries. It would seem that the identifying factor is the ServerName - so I'm assuming that as requests come in, it must check to see what domain has been called, and load those settings accordingly?? The problem is, at the moment I don't know what the path is to access each virtual website directly via my machine (without having the ServerName domain pointed to it yet). Could someone please tell me what I need to add to make it so I can access the virtual site directly? (For example instead of having to use http://www.siteone.com/ - how do i access it directly through http://mywebserver.com/~siteone/ or something) An excerpt from my conf file is as follows, I've just included one of the VirtualHost entries, but the rest are basically the same (same ip and port, the only differing thing is the ServerName). Any help would be GREATLY appreciated. NameVirtualHost 111.222.333.444:80 <VirtualHost 111.222.333.444:80> ServerAdmin root@siteone.com DocumentRoot /var/www/virtual/siteone.com/htdocs ServerName siteone.com ServerAlias www.siteone.com siteone.com *.siteone.com ErrorLog /var/log/apache2/users/siteone.com-error.log TransferLog /var/log/apache2/users/siteone.com-access.log CustomLog /var/log/apache2/siteone.com-traf.log traff CustomLog /var/log/apache2/siteone.com-combined.log combined Alias /errors /var/www/virtual/siteone.com/errors/ ErrorDocument 401 /errors/401/index.php ErrorDocument 403 /errors/403/index.php ErrorDocument 404 /errors/404/index.php ErrorDocument 500 /errors/500/index.php ScriptAlias /cgi-bin/ /var/www/virtual/siteone.com/cgi-bin/ <Directory /var/www/virtual/siteone.com/cgi-bin> AllowOverride None #Options ExecCGI Order allow,deny Allow from all </Directory> <Directory /var/www/vhcs2/gui> php_admin_value open_basedir "/var/www/vhcs2/gui/:/etc/vhcs2/:/proc/:/var/www/virtual/:/tmp/" </Directory> php_admin_value open_basedir "/var/www/virtual/siteone.com/:/usr/share/php/:/tmp/" <Directory /var/www/virtual/siteone.com/htdocs> Options Indexes Includes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost> Code (markup):
Download WinSCP and login with your root password to find the actual location of your files and/or modify manually your httpd.conf file, located inside etc./httpd/conf/ www.winscp.net
I would say "localhost/siteone.com/virtual/htdocs/". "/var/www/" refers to "localhost/" in Linux, I believe.
Use IP address - http://ip.address/ to serve the virtual host. You will have to upload files for that domain here: /var/www/virtual/siteone.com/htdocs