View previous topic :: View next topic |
Author |
Message |
bhogg Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Marvel/Marvel_-_Gambit.gif)
Joined: 29 Jun 2003 Posts: 96
|
Posted: Wed Dec 07, 2005 2:10 pm Post subject: Apache2 not displaying pages externally? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
vandalman n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 16 Mar 2005 Posts: 52
|
Posted: Thu Dec 08, 2005 12:42 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
bhogg Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/Marvel/Marvel_-_Gambit.gif)
Joined: 29 Jun 2003 Posts: 96
|
Posted: Thu Dec 08, 2005 3:32 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
vandalman n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 16 Mar 2005 Posts: 52
|
Posted: Thu Dec 08, 2005 8:12 am Post subject: |
|
|
The only thing I can think of is some hidden item in your Apache config. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
magic919 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
Posted: Thu Dec 08, 2005 10:27 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|