marcusami Posted January 8, 2008 Share Posted January 8, 2008 ive got a apache server running along side a file maker pro server 9, which doesnt really matter. anyways the machine running them is also a hosting computer. I can get to the server via http:// IP so apache serve is up i can see the Apache standard page "This not what you expected to see?" or what not. Ive been trying to edit the httpd.conf file for virtual hosting and i am getting no where. I work for a small business and this isnt really my area but they want me to do this. Ive read through the apache documentation but im just getting no where. I am sorry im so novice but help would be greatly appreciated NameVirtualHost * <VirtualHost *> ServerName www.domain.tld < ---( i get that this[/b] DocumentRoot /www/domain <-- (get this what folder to look to for files; but where does the root begin? i know www folder is what most people name there hosted sites folder but what is before www folder? where the localhost begins? </VirtualHost> <VirtualHost *> ServerName www.otherdomain.tld DocumentRoot /www/otherdomain </VirtualHost> Quote Link to comment https://forums.phpfreaks.com/topic/85052-apache-virtual-hosting/ Share on other sites More sharing options...
monkeytooth Posted January 13, 2008 Share Posted January 13, 2008 this is what used to work for me when I had a server up an running.. its for apache 2.0, not sure which your running.. but yea here goes.. edit as needed.. and as you see fit <VirtualHost 192.168.1.100> ServerAdmin monkeytooth@gmail.com DocumentRoot htdocs/www/personal/monkeytooth.net ServerName www.monkeytooth.net ServerAlias monkeytooth.net DirectoryIndex index.htm index.html index.php index.shtml index.asp index.cgi index.php3 ErrorLog D:/apache2triad/logs/monkeytooth.net-error.log CustomLog D:/apache2triad/logs/monkeytooth.net-access.log combined AddType text/html .shtml AddHandler server-parsed .shtml <IfModule mod_php4.c> AddType application/x-httpd-php .php3 AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps </IfModule> AddHandler cgi-script .cgi ScriptAlias /cgi-bin "htdocs/www/personal/monkeytooth.net" <DIRECTORY htdocs/www/personal/monkeytooth.net> OPTIONS Indexes Includes ExecCGI FollowSymLinks AllowOverride All </DIRECTORY> IndexOptions FancyIndexing </VirtualHost> This may be a bit overt-kill.. but none the less Quote Link to comment https://forums.phpfreaks.com/topic/85052-apache-virtual-hosting/#findComment-438382 Share on other sites More sharing options...
monkeytooth Posted January 13, 2008 Share Posted January 13, 2008 Also shouldn't fail to mention that.. if you read through the conf as your editing it, its pretty well commented about what it the next choice to edit does and what effect it will have on your server.. when your done editing, always remember to "Restart" apache.. changes don't take effect until apache restarts.. Quote Link to comment https://forums.phpfreaks.com/topic/85052-apache-virtual-hosting/#findComment-438384 Share on other sites More sharing options...
uknowho008 Posted January 15, 2008 Share Posted January 15, 2008 /www is at the root of your filing system. not the root of your virtual host. also you may need a Server Alias for each virtual host. not sure though. Quote Link to comment https://forums.phpfreaks.com/topic/85052-apache-virtual-hosting/#findComment-439595 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.