Find the answer to your Linux question:
Results 1 to 2 of 2
hi guys ive been searching for info and cracking my head for a while now. i have a question about how to configure my domain alias correctly. i have 2 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2010
    Posts
    4

    apache domain alias question


    hi guys

    ive been searching for info and cracking my head for a while now.

    i have a question about how to configure my domain alias correctly.

    i have 2 sub domains that i think , are now correctly pointing. but i cannot access the main domain/ip address. it automatically goes to domain1.example.com .. what have i done wrongly?

    ------------------------------
    NameVirtualHost *:80
    <VirtualHost *:80>
    ServerName domain1.example.com
    DocumentRoot "/www/live/public"
    <Directory "/www/live/public">
    Order allow,deny
    Allow from all
    AllowOverride all
    </Directory>
    Alias /pma "/www/pma"
    <Directory "/www/pma">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
    Order Allow,Deny
    Allow from all
    </Directory>
    </VirtualHost>
    <VirtualHost *:80>
    ServerName domain2.example.com
    DocumentRoot "/www/beta/public"
    <Directory "/www/beta/public">
    Order allow,deny
    Allow from all
    AllowOverride all
    </Directory>
    Alias /pma "/www/pma"
    <Directory "/www/pma">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
    Order Allow,Deny
    Allow from all
    </Directory>
    </VirtualHost>

  2. #2
    Just Joined!
    Join Date
    Jan 2010
    Posts
    4
    hahah

    sorry guys ... managed to fix it ......

    all i had to do was setup another virtualhost pointing to the main /var/www/html directory..

    how silly of me ...

Posting Permissions

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