Find the answer to your Linux question:
Results 1 to 2 of 2
I have a subdomain called www3 and I cant see it outside of our network. It's added in vhosts.conf in /etc/httpd/conf.d, and I can access it through www3.blah.com, but only ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2007
    Posts
    12

    How to get a subdomain accessible outside the local network? Cant!!


    I have a subdomain called www3 and I cant see it outside of our network. It's added in vhosts.conf in /etc/httpd/conf.d, and I can access it through www3.blah.com, but only when on vpn.

    We have another www2 that is both local AND outside the vpn. I am testing the site live and need access to it.

    Is there another file besides vhosts.conf that I need to add the ssubdomain in?

    Here's what I added in my vhosts.conf
    Code:
    <VirtualHost *:80>
       ServerName www2.mydomain.com
       ServerAlias www2.internal www2
       DocumentRoot /var/www/www2
    </VirtualHost>
    
    <Directory "/var/www/www2">
       allow from all
    </Directory>
    
    <VirtualHost *:80>
       ServerName www3.mydomain.com
       ServerAlias www3.internal www3
       DocumentRoot /var/www/www3
    </VirtualHost>
    
    <Directory "/var/www/www3">
       allow from all
    </Directory>

  2. #2
    Linux User
    Join Date
    Dec 2009
    Posts
    264
    Hi,
    Since you only changing the configuration of the web-server I guess the problem is the name resolve.

    You have two ways to solve it.
    1. Add domain-name into Internet dns server "www3.mydomain.com"
    2. Add name entry into your local hosts file.

Posting Permissions

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