VirtualHost Apparently Not Working (PHPList)

Discussion in 'Server Operation' started by shelzmike, Aug 9, 2009.

  1. shelzmike

    shelzmike New Member

    Hello All -

    To start with, I am definitely a newbie when it comes to linux (using Ubuntu Jaunty after a brief unhappy attempt at Fedora11). However, I am more familiar with Apache.

    Anyway, I just installed PHPList using the tutorial found here:

    Which, for the most part was really good and there were only a few spots that I was a little confused about.

    Anyway, so far everything seems like it is working with PHPList, but the virtual host set up step here (in the tutorial) is not working on my machine.

    For instance, I can get to the admin set up for PHPList by typing the full path directly (ex. http://localhost/www/web/lists/admin)

    however, I cannot simply get to it the way I should be able to using my Vhost. (Which should be http://localhost/phplist/admin)

    You can take a look there that will give you a hint at what I did - I followed it to the letter. Is there something missing in that tutorial that I am missing? Thanks!

    FYI - here is my phplist file:

    NameVirtualHost **.*.*.*7:80
    <VirtualHost **.*.*.*7:80>
        ServerAdmin [email protected]
        DocumentRoot /var/www/www/web
        LogLevel warn
        ErrorLog /var/log/apache2/www_error.log
        CustomLog /var/log/apache2/www_access.log combined
    BTW - the IP address is valid, of course. Could it be my serverName? Right now, I do not have a static IP address but will get getting another one soon. I am using DynDNS to test this app. Thanks in advance for help!
  2. falko

    falko Super Moderator ISPConfig Developer

    You're using the wrong IP in the VirtualHost directive. If you call that web site by localhost, you must use, or better

    <VirtualHost *:80>
    to make it listen on all IPs.
  3. shelzmike

    shelzmike New Member

    Thank you for the response. I will try this and see if that works. I did try *:80 but might have had the syntax wrong though. I will report back regardless of the outcome.

    Thanks for the help!


Share This Page