View Full Version : Added site not working, Shared IP page showing up.
omni
24th June 2008, 18:18
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?
till
25th June 2008, 14:55
Please search the forum for "shared ip" :)
omni
25th June 2008, 15:42
i manually edited my Vhosts_ispconfig.conf and restared apache2 and got it to work.
thanks.
falko
25th June 2008, 22:51
i manually edited my Vhosts_ispconfig.conf and restared apache2 and got it to work.
thanks.
Your changes will be overwritten by ISPConfig. What exactly did you change?
omni
25th June 2008, 22:53
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...
falko
26th June 2008, 17:06
What exactly did you change manually in the vhost? An IP address, a path, etc.?
omni
26th June 2008, 17:10
again, I manually copied the following and added it then changed it to reflect the new site;
######################################
# Vhost: www.newiste.com:80
######################################
#
#
<VirtualHost 192.168.0.250:80>
php_value memory_limit 16M
ServerName www.newsite.com:80
ServerAdmin root@newsite.com
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>
#
#
#
falko
26th June 2008, 17:19
And how does the www.newsite.com vhost look if it's created by ISPConfig?
omni
26th June 2008, 17:21
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.
Doug G
27th June 2008, 06:49
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 :)
till
27th June 2008, 12:39
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.
Please have a look here:
http://www.howtoforge.com/forums/showthread.php?t=13596
stanman
7th July 2008, 16:31
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...
Please search the forum for shared IP or take a look in the getting started guide chapter 2.10.3:
http://www.howtoforge.com/ispconfig-2.x-first-steps-p3
stanman
7th July 2008, 16:39
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
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.