View Full Version : default page for shared IP
sc0ut
29th November 2005, 11:00
Hi,
I've been using ISPConfig v. 2.1.0, and have upgraded to 2.1.1, server is a VPS running SuSE 9.2, with 2 IPs.
When I enter any of those two IPs as URL I get Error 403, instead of index.html page from /var/www/sharedip/
Apache2 error log says:
[Tue Nov 29 03:08:28 2005] [error] [client 70.84.59.xx] client denied by server configuration: /var/www/sharedip/
Here's the part of /etc/apache2/vhosts/Vhosts_ispconfig.conf with shared IP config (as set by ISPConfig):
###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost 207.210.77.xx:80
<VirtualHost 207.210.77.xx:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
NameVirtualHost 207.210.77.xx:80
<VirtualHost 207.210.77.xx:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
What could be wrong?
Tribal-Dolphin
29th November 2005, 11:03
Have you an .htaccess file in the directory ?
What's your Apache's Default Root ?
sc0ut
29th November 2005, 11:13
There's no .htaccess in /var/www/sharedip/
and default root is as it was set during installation:
DocumentRoot "/srv/www/htdocs"
(in /etc/apache2/default-server.conf)
Just came to it, could someting like:
<Directory "/var/www/sharedip">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
in Vhosts_ispconfig.conf solve the problem? And will that be overwritten by ISPConfig?
Tribal-Dolphin
29th November 2005, 11:19
Try to modify /var/www/sharedip/ by /srv/www/htdocs/sharedip and move the old foder to the new location.
till
29th November 2005, 11:20
Everything in Vhosts_ispconfig.conf will be overwritten by ISPConfig.
But does ISPCOnfig not write a vhost for the sharedIP in your Vhosts_ispconfig.conf?
<VirtualHost [IP-ADDRESS:PORT]>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
sc0ut
29th November 2005, 15:15
Well, I wrote that ISPConfig added:
NameVirtualHost 207.210.77.xx:80
<VirtualHost 207.210.77.xx:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
NameVirtualHost 207.210.77.xx:80
<VirtualHost 207.210.77.xx:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip
</VirtualHost>
in Vhosts_ispconfig.conf, but somehow that page / directory was forbidden (got error 403 when tried to load it).
I added:
<Directory "/var/www/sharedip">
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
in /etc/apache2/default-server.conf, and now that page is accessible, and works fine.
I think ISPConfig should not alter that file, so the change will be permanent.
(just for the record, if someone else get the same error, I'm using SuSE 9.2 & apache 2.0.55, ISPConfig 2.1.1)
till
29th November 2005, 15:46
ISPCOnfig does not cahnge the file: /etc/apache2/default-server.conf
falko
29th November 2005, 15:51
I've just experienced the same behaviour on Mandriva 2006, therefore I added
<Directory /var/www/sharedip>
Options +Includes -Indexes
AllowOverride None
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Deny from all
</Files>
</Directory> to /etc/httpd/conf/httpd.conf.
I've also modified the ISPConfig installer so that it will write this section to the httpd.conf in future versions automatically.:)
bccisp01
29th November 2005, 22:16
I've just experienced the same behaviour on Mandriva 2006, therefore I added
<Directory /var/www/sharedip>
Options +Includes -Indexes
AllowOverride None
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Deny from all
</Files>
</Directory> to /etc/httpd/conf/httpd.conf.
I've also modified the ISPConfig installer so that it will write this section to the httpd.conf in future versions automatically.:)
Where in the httpd.conf file does this go?
Thanks,
bccisp01
29th November 2005, 22:31
Hey guys,
I don't mean to ask a silly question but I am stumped. I have the domain ispconfig.homelinux.net point to my server which is a Fedora Core 4 install with latest and greatest. ISPConfig installed fine. However when I goto this url http://ispconfig.homelinux.net I get a sharedip page. Needless to say I am cornfused by this. How do I create the main site so that when someone goes to that url it shows the main default site which should be my pages.
Thanks,
till
29th November 2005, 22:35
Create a new website in Ispconfig with host: ispconfig and domain: homelinux.net and your private IP.
bccisp01
29th November 2005, 22:41
Create a new website in Ispconfig with host: ispconfig and domain: homelinux.net and your privet IP.
Thank you sir Iwill try that.
falko
30th November 2005, 01:11
Where in the httpd.conf file does this go?
At the end, right before the part that was added by the ISPConfig installer.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.