|
-
May 1st, 2007, 07:22 PM
#1
Thread Starter
Fanatic Member
[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?
-
May 1st, 2007, 07:33 PM
#2
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
-
May 1st, 2007, 08:39 PM
#3
Thread Starter
Fanatic Member
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 ?
-
May 1st, 2007, 08:51 PM
#4
Re: 1 webserver 2 domain names
In your Directory block(s):
Code:
Order deny,allow
Allow from all
-
May 1st, 2007, 08:57 PM
#5
Thread Starter
Fanatic Member
Re: 1 webserver 2 domain names
 Originally Posted by penagate
In your Directory block(s):
Code:
Order deny,allow
Allow from all
beautiful worked like a charm thanks penagate
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|