Results 1 to 5 of 5

Thread: [RESOLVED] 1 webserver 2 domain names

  1. #1

    Thread Starter
    Fanatic Member dark_shadow's Avatar
    Join Date
    Feb 2005
    Location
    Igloo
    Posts
    900

    Resolved [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?

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    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

  3. #3

    Thread Starter
    Fanatic Member dark_shadow's Avatar
    Join Date
    Feb 2005
    Location
    Igloo
    Posts
    900

    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 ?

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: 1 webserver 2 domain names

    In your Directory block(s):
    Code:
    Order deny,allow
    Allow from all

  5. #5

    Thread Starter
    Fanatic Member dark_shadow's Avatar
    Join Date
    Feb 2005
    Location
    Igloo
    Posts
    900

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width