Guest BinkyD Posted November 12, 2004 Report Share Posted November 12, 2004 Hello All, I am BRAND new to linux, so be gentle on the replies... I setup apache 2 last night on Mandrake 10.1, everything works fine locally. I can access it from my other 2 pc's. However, when I try to access it from my office pc I get the following 403 error: You might not have permission to view this directory or page using the credentials you supplied. The httpd error logfile shows the attempt as follows: [error] [client xx.xxx.xxx.x] (13)Permission denied: access to / denied I used webmin in conjunction with the mandrake utility to setup the server. The directory is still set at the default var/www/http I can connect to webmin from my office, as well as ftp, but no go on the www side of things. Any advice? An attempt from a family member's computer last night received access, I just can't figure out why I can't access it today... Help!? Quote Link to comment Share on other sites More sharing options...
Qchem Posted November 15, 2004 Report Share Posted November 15, 2004 An attempt from a family member's computer last night received access, I just can't figure out why I can't access it today... So you've had access from an external box over the net? In httpd.conf theres a general allow/deny section which defines which IP addresses can access a server - might be worth checking. Quote Link to comment Share on other sites More sharing options...
liberty Posted November 15, 2004 Report Share Posted November 15, 2004 What the problem is.. You have to access an valid index.ext document.. standard = xx.x.xxx.xx/index.shtml there is the configuration information, if you want to upload new files you have to be logged in as 'root' otherwise you don't have access after /var/ , hope it works.. if the problem still exists after that.. reply the error here. Quote Link to comment Share on other sites More sharing options...
Guest alkmie Posted August 24, 2005 Report Share Posted August 24, 2005 What the problem is.. You have to access an valid index.ext document.. standard = xx.x.xxx.xx/index.shtml there is the configuration information, if you want to upload new files you have to be logged in as 'root' otherwise you don't have access after /var/ , hope it works.. if the problem still exists after that.. reply the error here. <{POST_SNAPBACK}> i am having the same problem http://localhost works fine but http://ip.adress over the internet does not work iv disabled shorewall just incase ive attached my httpd.conf everthing is default expect User apache Group apache ServerAdmin xxx@xxx.net ServerName xxx.xxx.com DocumentRoot "/var/www/html" <Directory /> Options None AllowOverride None Order deny,allow Deny from all </Directory> <Directory "/var/www/html"> Options None AllowOverride None Order allow,deny Allow from all </Directory> httpd2.conf.txt Quote Link to comment Share on other sites More sharing options...
aioshin Posted August 24, 2005 Report Share Posted August 24, 2005 try to #netstat -an | grep tcp to find out which ip or interface it listens to.. does your host has 2 NIC? might be that httpd listens to LAN interface while your webmin listens to all interface, that's why you'd been able to acces it from outside... Quote Link to comment Share on other sites More sharing options...
Guest alkmie Posted August 25, 2005 Report Share Posted August 25, 2005 try to #netstat -an | grep tcp to find out which ip or interface it listens to.. does your host has 2 NIC? might be that httpd listens to LAN interface while your webmin listens to all interface, that's why you'd been able to acces it from outside... <{POST_SNAPBACK}> here are the results tcp 0 0 127.0.0.1:10026 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:874 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:5335 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:1241 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:37435 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:7741 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN tcp 0 0 192.168.0.100:36305 64.233.179.99:80 ESTABLISHED tcp 0 0 192.168.0.100:50890 66.102.7.99:80 ESTABLISHED tcp 0 0 192.168.0.100:50889 66.102.7.99:80 ESTABLISHED tcp 0 0 :::80 :::* LISTEN tcp 0 0 :::6000 :::* LISTEN seems to me like port 80 isnt even bond???? how can this be i have listen 80 in my httpd.conf ### ### Global Configuration ### # We now support multiple apache configurations on the same server. In # common.conf, we put all directives that are common to all implementations # (httpd, httpd-perl, etc.) # For Apache2 we load all conf files in conf.d Include /etc/httpd/conf.d/*.conf Include conf/commonhttpd.conf Include conf/fileprotector.conf ### ### IP Address/Port and Proxied configuration section ### # The APACHEPROXIED setting can be set in /etc/rc.d/init.d/httpd if you # are using a proxy or accelerator, like the Apache-SGI or khttpd, so that # the fast web server serves static content while Apache handles the # cgi or php files #BindAddress 192.168.0.100 #<IfDefine APACHEPROXIED> #Listen 8080 #</IfDefine> #<IfDefine !APACHEPROXIED> [color=red] Listen 80 [/color] #</IfDefine> #User apache #Group apache thanks for the reply Quote Link to comment Share on other sites More sharing options...
aioshin Posted August 25, 2005 Report Share Posted August 25, 2005 are you connected to internet behind a router or NAT device? I think that's the reason why you wont be able to access that host from outside your network or from the internet .. you should do some sort of forwarding or mapping on the device that has a direct connection to internet. should be that when someone from outside try to access www or port 80 on the ip of that router, it should be forwarded to 192.168.0.100 Quote Link to comment Share on other sites More sharing options...
Guest alkmie Posted August 26, 2005 Report Share Posted August 26, 2005 (edited) yes i do have a d link router but im am using virtual server on port 80 pointing to 192.168.0.100 im going to try Listen 192.168.0100:80 in httpd.conf and see if that does anything thnx for ur reply im almost for sure the problem is in httpd.conf or maybe access permission i know in iis windows has a anoumous internet account does apache do the same? ... ok well im reinstalled just for shits and gigglesa and it still doesnt work note im using apache 2 maybe i should use 1.3? [r00t@localhost ~]$ netstat -an | grep tcp tcp 0 0 0.0.0.0:643 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:10026 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN tcp 0 0 192.168.0.100:80 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:6000 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:5335 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:7741 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN tcp 0 0 192.168.0.100:58146 216.239.57.147:80 ESTABLISHED tcp 0 0 192.168.0.100:59893 64.233.161.104:80 ESTABLISHED tcp 0 0 192.168.0.100:38210 216.155.193.174:5050 ESTABLISHED tcp 0 0 :::6000 :::* LISTEN tcp 0 0 :::443 :::* LISTEN ive attached my firewall screenshot and httpd.conf im really stumped here also note im not accually getting a 403 error im getting the same error u get when you've lost connections to the internet page not found something like that... ie no code numbers if anyones got any ideas please share ive tryed everything i can think of im almost for sure its a file permission problem here a snap shot of my permission setting... when my firend gets on later im going to set everthing to read and write and see what that does. here is the url for testing Http://alkmie.servebeer.com (try copy and pasting into browser cuz when i click from forum i get link to microsoft) strange added adanvced permission screen shot please tell me if stick or gid needs to be check as i dont know what these do? also changed documentroot to /home/*/www/html so now the owner is my default user account Edited August 27, 2005 by alkmie Quote Link to comment Share on other sites More sharing options...
Guest alkmie Posted August 29, 2005 Report Share Posted August 29, 2005 PROBLEM SOLVED = changed default port well did some googling and read somewhere that isp block port 80 for some reason so i changed listen to Listen 8080 and forward it an my firewall and botabingbotaboom it all works fine. thanks to everyone who runs this site id never would have escapted winhell will out ya Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.