VirtualHosts work intern but not extern

started at 07 May 2007 by Jim
  • Jim
    07 May 2007

    Hi there,

    I'm configuring my virtualhosts but it won't work. I have this:

    <VirtualHost domein.nl>
    	ServerAdmin webmaster@domein.nl
    	DocumentRoot /Volumes/Jim/www/vhosts/domein/htdocs
    	ServerName domein.nl
    </VirtualHost>

    It works on my computer but it doesn't work from outside this computer.

    Anyone has suggesntions?

  • Jim
    07 May 2007

    Here is my httpd.conf:

    #
    # This is the main Apache HTTP server configuration file.  It contains the
    # configuration directives that give the server its instructions.
    # See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
    # In particular, see
    # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
    # for a discussion of each configuration directive.
    #
    # Do NOT simply read the instructions in here without understanding
    # what they do.  They're here only as hints or reminders.  If you are unsure
    # consult the online docs. You have been warned.
    #
    # Configuration and logfile names: If the filenames you specify for many
    # of the server's control files begin with \\\"/\\\" (or \\\"drive:/\\\" for Win32), the
    # server will use that explicit path.  If the filenames do *not* begin
    # with \\\"/\\\", the value of ServerRoot is prepended -- so \\\"/var/log/httpd/foo.log\\\"
    # with ServerRoot set to \\\"/usr/local/apache2\\\" will be interpreted by the
    # server as \\\"/usr/local/apache2//var/log/httpd/foo.log\\\".
    
    # VirtualHosts :
    <VirtualHost domein.nl>
    	ServerAdmin webmaster@domein.nl
    	DocumentRoot /Volumes/Jim/www/vhosts/domein/htdocs
    	ServerName domein.nl
    </VirtualHost>
  • Richard
    07 May 2007

    What you have forgotten is NameVirtualHost your.external.ip.address:80, read the documentation on: http://diymacserver.com/installing-apache/configuring-virtual-hosts-in-apache/ and follow all the steps.

Reply

You must log in to post.