Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache2 not displaying pages externally?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
bhogg
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jun 2003
Posts: 96

PostPosted: Wed Dec 07, 2005 2:10 pm    Post subject: Apache2 not displaying pages externally? Reply with quote

I'm having a very frustrating problem... I'm installing some scripts in a directory off the root of htdocs, more specifically a shopping cart tutorial from phpwebcommerce.com.

Once I extract the files and setup the permissions (using SquirrelMail installed in htdocs/mail/ as an example), and attempt to view the page externally, all apache returns from index.php is

Code:
<html><body></body></html>


which may just be the firefox default. If I try to view it internally as localhost/testcart/index.php, the page displays. There are no specific permission differences between /mail and /testcart, nor any specific references to /mail in httpd.conf or commonapache2.conf. The error log just reports not finding favicon.ico a bunch of times, both from 127.0.0.1 and my external address, and access logs show the GET to /testcart, but with 127.0.0.1 the GET results in the page actually being sent along with it's images.

Any ideas on what to check or do next?

Thanks,
Brian
Back to top
View user's profile Send private message
vandalman
n00b
n00b


Joined: 16 Mar 2005
Posts: 52

PostPosted: Thu Dec 08, 2005 12:42 am    Post subject: Reply with quote

The the tutorial come with an .htaccess file that limits external views? I'd also check to see if all the supporting directories are viewable by external IP's
Back to top
View user's profile Send private message
bhogg
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jun 2003
Posts: 96

PostPosted: Thu Dec 08, 2005 3:32 am    Post subject: Reply with quote

The .htaccess file was removed with no effect. I actually had to remove it beforehand and place the include directories in php.ini, or else edit the php's themselves. Again, localhost works but externally it does not.

There are no other htaccess files, and all files in supporting directories have the same permission structure as the squirrelmail folders. What else could be limiting external access to a directory that was newly created under htdocs?
Back to top
View user's profile Send private message
vandalman
n00b
n00b


Joined: 16 Mar 2005
Posts: 52

PostPosted: Thu Dec 08, 2005 8:12 am    Post subject: Reply with quote

The only thing I can think of is some hidden item in your Apache config.
Back to top
View user's profile Send private message
magic919
Advocate
Advocate


Joined: 17 Jun 2005
Posts: 2182
Location: Berkshire, UK

PostPosted: Thu Dec 08, 2005 10:27 am    Post subject: Reply with quote

htaccess files are a bit old hat and not the preferred method of restricting access to directories if you can access the apache conf files. If you are running current Apache under Gentoo you'll probably want to check /etc/apache2/vhosts.d/ for the conf relating to default site. Check there and watch your errors.log.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum