[RESOLVED] 1 webserver 2 domain names
hey all i was wondering if it was possible to have one computer running apache webserver ( for windows) and have 2 domain names for example http://site1.ath.cx going to port 80 and http://site2.ath.cx going to port 8080)? basically can i tweak apache to run 2 sites off of one server? if so how, if not why?
Re: 1 webserver 2 domain names
Put them both on port 80 and use VirtualHost blocks in your httpd.config file to assign each domain name to a separate directory root.
http://sol4.net/linux/apache3.shtml
Re: 1 webserver 2 domain names
alright i configured the virtural host but now when i try to go to it i get a access forbidden error any ideas ?
Re: 1 webserver 2 domain names
In your Directory block(s):
Code:
Order deny,allow
Allow from all
Re: 1 webserver 2 domain names
Quote:
Originally Posted by penagate
In your Directory block(s):
Code:
Order deny,allow
Allow from all
beautiful worked like a charm :) thanks penagate