Find the answer to your Linux question:
Page 3 of 3 FirstFirst 1 2 3
Results 21 to 24 of 24
Admittedly, I don't know too much about apache's virtual host concept, but when I configure vhosts, I use my IP address instead of "*:80". IIRC, when I first configured vhosts, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #21
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578

    Admittedly, I don't know too much about apache's virtual host concept, but when I configure vhosts, I use my IP address instead of "*:80". IIRC, when I first configured vhosts, I, too, tried *:80, and that gave precisely those symptoms, and then when I changed it to the server's IP address instead, it solved those problems.

  2. #22
    Linux Engineer Giro's Avatar
    Join Date
    Jul 2003
    Location
    England
    Posts
    1,219
    Heres my vhost i use the same format. But you have NameVirtualHost commented out which should be uncommented. And you should put your directory blocks at the bottom inside the virtual block
    Code:
    NameVirtualHost *
    
    <VirtualHost *>
            ServerName sub.gotdns.org
            ServerAlias sub.gotdns.org www.sub.gotdns.org
            ServerAdmin giro - at - sub.gotdns.org
            DocumentRoot /www/sub
            ScriptAlias /cgi-bin/ /www/sub/cgi-bin/
            <Directory /www/sub>
                    AllowOverride All
                    Options +Includes +ExecCGI
            </Directory>
            ErrorLog /var/log/sub.gotdns.org-error.log
            CustomLog /var/log/sub.gotdns.org-access.log combined
    </VirtualHost>
    EDIT: You dont even have a ServerAlias because ServerName is just what you want to call your server. I think if you add ServerAlias it will work.

  3. #23
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    What do you mean, Giro? His NameVirtualHost directive is not commented out.

  4. #24
    Linux Engineer Giro's Avatar
    Join Date
    Jul 2003
    Location
    England
    Posts
    1,219
    Yeh just noticed.

Page 3 of 3 FirstFirst 1 2 3

Posting Permissions

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