Added site not working, Shared IP page showing up.

Discussion in 'General' started by omni, Jun 24, 2008.

  1. omni

    omni New Member

    So I added a new site to my ispconfig, got all the DNS stuff exactly copied from a working site. However when you go to the address all you see is the "Shared IP" ispconfig page.

    any ideas?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please search the forum for "shared ip" :)
     
  3. omni

    omni New Member

    i manually edited my Vhosts_ispconfig.conf and restared apache2 and got it to work.

    thanks.
     
    Last edited: Jun 25, 2008
  4. falko

    falko Super Moderator ISPConfig Developer

    Your changes will be overwritten by ISPConfig. What exactly did you change?
     
  5. omni

    omni New Member

    I just copied a site that was working, appended the file with the data and changed it to match the new site i just added.

    if there is a way to do this 'correctly' I am all ears, and before you say "search".. I already did and this was the best I came up with...
     
  6. falko

    falko Super Moderator ISPConfig Developer

    What exactly did you change manually in the vhost? An IP address, a path, etc.?
     
  7. omni

    omni New Member

    again, I manually copied the following and added it then changed it to reflect the new site;

    Code:
    ######################################
    # Vhost: www.newiste.com:80
    ######################################
    #
    #
    <VirtualHost 192.168.0.250:80>
    php_value memory_limit 16M
    ServerName www.newsite.com:80
    ServerAdmin [email protected]
    DocumentRoot /var/www/web5/web
    ServerAlias newsite.com
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
    ErrorLog /var/www/web5/log/error.log
    AddType application/x-httpd-php .php .php3 .php4 .php5
    <Files *.php>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php3>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php4>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    <Files *.php5>
        SetOutputFilter PHP
        SetInputFilter PHP
    </Files>
    php_admin_flag safe_mode Off
    Alias /error/ "/var/www/web5/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /var/www/web5/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web5/user/$1/web/$3
    </VirtualHost>
    #
    #
    #
     
  8. falko

    falko Super Moderator ISPConfig Developer

    And how does the www.newsite.com vhost look if it's created by ISPConfig?
     
  9. omni

    omni New Member

    thats the problem, I created the new site in ispconfig and it looked like the vhost file was never even touched, so i just manually added it and then I was good to go.

    but I have no idea why ispconfig didnt 'automagically' add the sites to the vhosts config file.
     
  10. Doug G

    Doug G Member HowtoForge Supporter

    fwiw, I'm having a similar problem, added a new site on a new testing server (fedora 8). /etc/httpd/conf/vhosts has a new vhosts_ispconfig.c_<date stuff> file with the new site information in it, but the file /etc/httpd/conf/vhosts/Vhosts_ispconfg.conf never gets updated with the new site information, even though the modify timestamp is changed to when I created the new site.

    I had no errors during the site setup, and I can't find any kind of log entry showing a problem Apache gets restarted by the new site addition, no errors logged anywhere I can find.

    I'm just starting experimenting with ispconfig so there is surely a chance I'm doing something stupid :)
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    Please have a look here:

    http://www.howtoforge.com/forums/showthread.php?t=13596
     
  12. stanman

    stanman New Member

    same here

    strangest thing happend to me too... :(

    I've installed ubuntu 8.04 LTS server (Hardy heron) and installed ISPConfig. It looks and feels great. But somehow, after adding a new site this site is only pointing to the sharedip page. Any new site also just points me to the shareip page. Sure hope anyone knows how to solve this...
     
  13. till

    till Super Moderator Staff Member ISPConfig Developer

  14. stanman

    stanman New Member

    thanks there. I've restarted apache2, because httpd -t gave back a bad username $APACHE_RUN_USER...

    now the site is showing the right content
     

Share This Page