#1  
Old 23rd January 2007, 16:06
rannia_ptaha rannia_ptaha is offline
Junior Member
 
Join Date: Jan 2007
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
Default 403 Forbidden (Permission to /)

Hello!
Sorry for may be common Q, but I couldn't find topic with my problem on these forums.

I installed ISPserver with the DNS server.name.com. This is main server.
Everything is ok (mail, ftp, dns). The problem with Apache.

1. When I try to access directly to http://server.name.com/ it shows Welcome- message: " This IP address is shared. For access to the web site which you look for, enter its address instead of its IP."
2. If I try to http://www.server.name.com/ - can't display the webpage...
3. User can access ftp, mail,...

ok... I configured another one site on the same server = company.com
When I try to access directly to http://company.com/ it shows "Forbidden. You don't have permission to access / on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request."

I checked the quota and trafic = set ok.
Looks like smth wrong with my hands, head and permission to .../www/web1 (.../www/web2) = the permission is set for web_user1 - why Apache can't access it?
Reply With Quote
Sponsored Links
  #2  
Old 24th January 2007, 10:24
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

Please make sure that server.name.com points to the IP in DNS that you configured for your website. If your server is behind a router, you must select the internal IP for the ISPConfig website and the domain must point to the external IP of your router.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 24th January 2007, 10:34
rannia_ptaha rannia_ptaha is offline
Junior Member
 
Join Date: Jan 2007
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
Default

Yes - it's set as external IP. DNS is ok (mail and externel ftp - work ok).
The problem is in Apache2. I can't understand... Looks like httpd has no rights to access .php and .html . The .../www/web1 has permission for web_user1... what else?
Reply With Quote
  #4  
Old 24th January 2007, 10:40
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

Are you in a NAT enviroment behind a router?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
AbannyvabVask (22nd December 2013)
  #5  
Old 24th January 2007, 11:59
rannia_ptaha rannia_ptaha is offline
Junior Member
 
Join Date: Jan 2007
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
Default

The server is stand-alone (NAT, SuSE Firewall standart, 2 LAN interfaces), without any external routers. One ETH0 = external, ETH1 - internal net.
Reply With Quote
  #6  
Old 24th January 2007, 13:42
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

What's the output of
Code:
ifconfig
and what's in Vhosts_ispconfig.conf?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
AbannyvabVask (22nd December 2013)
  #7  
Old 24th January 2007, 14:23
rannia_ptaha rannia_ptaha is offline
Junior Member
 
Join Date: Jan 2007
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
Default

ifconfig:
-----
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:14:5E:2A:40:4E
inet addr:82.143.129.50 Bcast:82.143.129.55 Mask:255.255.255.248
inet6 addr: fe80::214:5eff:fe2a:404e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1006 errors:0 dropped:0 overruns:0 frame:0
TX packets:739 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:570728 (557.3 Kb) TX bytes:83563 (81.6 Kb)
Interrupt:169

eth1 Link encap:Ethernet HWaddr 00:14:5E:2A:40:4F
inet addr:172.18.194.12 Bcast:172.18.194.127 Mask:255.255.255.128
inet6 addr: fe80::214:5eff:fe2a:404f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:78562 errors:0 dropped:0 overruns:0 frame:0
TX packets:104 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6038474 (5.7 Mb) TX bytes:11786 (11.5 Kb)
Interrupt:169

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:253 errors:0 dropped:0 overruns:0 frame:0
TX packets:253 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:21473 (20.9 Kb) TX bytes:21473 (20.9 Kb)
-------
Reply With Quote
  #8  
Old 24th January 2007, 14:26
rannia_ptaha rannia_ptaha is offline
Junior Member
 
Join Date: Jan 2007
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
Default

Code:
###################################                                                                               
#                                                                                                                  
# ISPConfig vHost Configuration File                                                                               
#         Version 1.0                                                                                              
#                                                                                                                  
###################################                                                                                
#                                                                                                                  
NameVirtualHost 82.143.129.50:80                                                                                   
<VirtualHost 82.143.129.50:80>                                                                                       
ServerName localhost                                                                                               
ServerAdmin root@localhost                                                                                         
DocumentRoot /var/www/sharedip                                                                                   
</VirtualHost>                                                                                                     
#                                                                                                                  
#                                                                                                                  
######################################                                                                             
# Vhost: server.name.com:80                                                                                        
######################################                                                                             
#                                                                                                                  
#                                                                                                                  
<VirtualHost 82.143.129.50:80>                                                                                     
ServerName server.name.com:80                                                                                      
ServerAdmin webmaster@name.com                                                                                        
DocumentRoot /var/www/web1/web                                                                                     
ServerAlias name.company.com                                                                                        
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl 
indexErrorLog /var/www/web1/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/web1/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/web1/user/$1/web/$3                                                         
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web1/user/$1/web/$3                                                    
</VirtualHost>                                                                                                     
#

Last edited by rannia_ptaha; 24th January 2007 at 14:34.
Reply With Quote
The Following User Says Thank You to rannia_ptaha For This Useful Post:
AbannyvabVask (22nd December 2013)
  #9  
Old 24th January 2007, 14:39
rannia_ptaha rannia_ptaha is offline
Junior Member
 
Join Date: Jan 2007
Posts: 6
Thanks: 0
Thanked 1 Time in 1 Post
Default

Code:
######################################                                                                            
# Vhost: company.com:80                                                                                          
######################################                                                                            
#                                                                                                                 
#                                                                                                                 
<VirtualHost 82.142.129.51:80>                                                                                    

ServerName www.company.com:80                                                                                        
ServerAdmin webmaster@company.com                                                                                    
DocumentRoot /var/www/web6/web                                                                                    
ServerAlias wowlg.ru www.company.com                                                                                 
DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl 
indeErrorLog /var/www/web6/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/web6/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/web6/user/$1/web/$3                                                        
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web6/user/$1/web/$3                                                   
</VirtualHost>                                                                                                    
#
Reply With Quote
  #10  
Old 25th January 2007, 19:36
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
 
Default

82.142.129.51 doesn't exist on your server, that's why you can't see the www.company.com web site. You can add this IP address as a virtual interface to eth0 using YaST.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
AbannyvabVask (20th December 2013)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
403 Error- Forbidden! actiononline Installation/Configuration 1 14th December 2006 21:56
403 Error- Forbidden! on form submit Macord General 4 11th December 2006 23:22
ERROR 403 permission and access problem isopure General 8 1st September 2006 11:15
CGI issues - 403 Error- Forbidden! itgroup Installation/Configuration 4 2nd June 2006 10:43
problem with Webalizer (403 Error- Forbidden!) kong121s Installation/Configuration 9 28th April 2006 11:33


All times are GMT +2. The time now is 20:24.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.