
29th November 2005, 10:00
|
|
Junior Member
|
|
Join Date: Oct 2005
Location: Bosnia and Herzegovina
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
default page for shared IP
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?
|

29th November 2005, 10:03
|
|
Member
|
|
Join Date: Jul 2005
Location: Rives - Isčre - FRANCE
Posts: 50
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Have you an .htaccess file in the directory ?
What's your Apache's Default Root ?
|

29th November 2005, 10:13
|
|
Junior Member
|
|
Join Date: Oct 2005
Location: Bosnia and Herzegovina
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|

29th November 2005, 10:19
|
|
Member
|
|
Join Date: Jul 2005
Location: Rives - Isčre - FRANCE
Posts: 50
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Try to modify /var/www/sharedip/ by /srv/www/htdocs/sharedip and move the old foder to the new location.
|

29th November 2005, 10:20
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
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>
|

29th November 2005, 14:15
|
|
Junior Member
|
|
Join Date: Oct 2005
Location: Bosnia and Herzegovina
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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)
|

29th November 2005, 14:46
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,911
Thanks: 693
Thanked 4,198 Times in 3,213 Posts
|
|
ISPCOnfig does not cahnge the file: /etc/apache2/default-server.conf
|

29th November 2005, 14:51
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,595 Times in 2,446 Posts
|
|
I've just experienced the same behaviour on Mandriva 2006, therefore I added
Code:
<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.
|

29th November 2005, 21:16
|
|
Junior Member
|
|
Join Date: Sep 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Sharedip
Quote:
|
Originally Posted by falko
I've just experienced the same behaviour on Mandriva 2006, therefore I added
Code:
<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,
|

29th November 2005, 21:31
|
|
Junior Member
|
|
Join Date: Sep 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Main Default Site?
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,
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 06:54.
|
|
Recent comments
1 day 5 hours ago
1 day 10 hours ago
1 day 15 hours ago
1 day 16 hours ago
2 days 7 hours ago
2 days 7 hours ago
2 days 12 hours ago
2 days 18 hours ago
2 days 19 hours ago
2 days 20 hours ago