View previous topic :: View next topic |
Author |
Message |
MaxMara n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/107069426541346b65654c0.gif)
Joined: 31 Aug 2004 Posts: 35 Location: Vienna/Austria
|
Posted: Thu Nov 17, 2005 8:14 am Post subject: Problems with Apache2 |
|
|
Hi!
I have some strange problems with apache2 after doing an emerge -u.
When I try to browse to one of my websites (I only have virtualhosts ) a box opens and asks me what I want to do with this file: application/x-httpd-php....save it or open it with an associated program.
In the httpd.conf I have the entries:
DirectoryIndex index.php
AddType application/x-httpd-php .php
LoadModule php4_module extramodules/libphp4.so
and in each vhost-entry I also have: DirectoryIndex index.php (just to make sure... )
He only opens this box when I use the normal url like http://www.website.com. But if I use http://www.website.com/index.php it works without any problems.
Does anyone of you know whats wrong with my config?
Thanks
Christian. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Crimson Rider Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Final Fantasy/Final_Fantasy_8_-_Zell.gif)
Joined: 23 Jun 2003 Posts: 462 Location: Delft, the Netherlands
|
Posted: Thu Nov 17, 2005 10:23 am Post subject: |
|
|
Hey MaxMara,
I have been having the same problems some time ago. In my case it turned out to be a PHP4 vs. PHP5 problem. I take it you have PHP4 installed, can you check if you have a line that says something like
Code: | APACHE2_OPTS="-D DEFAULT_VHOST -D DAV -D PHP4 -D SSL -D DOC" |
In your /etc/conf/apache2 file ?
Good luck
This answer brought to you by the Adopt an unaswered post initiative _________________ Code, justify, code - Pitr Dubovich |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MaxMara n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/107069426541346b65654c0.gif)
Joined: 31 Aug 2004 Posts: 35 Location: Vienna/Austria
|
Posted: Thu Nov 17, 2005 11:01 am Post subject: |
|
|
Thanks for your answer Crimson Rider,
but I have the same line in my /etc/conf.d/apache2 ![Crying or Very sad :cry:](images/smiles/icon_cry.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Crimson Rider Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Final Fantasy/Final_Fantasy_8_-_Zell.gif)
Joined: 23 Jun 2003 Posts: 462 Location: Delft, the Netherlands
|
Posted: Thu Nov 17, 2005 11:54 am Post subject: |
|
|
If you have that line, then you shouldn't need any extra lines in your virtual hosts directives.
You could try removing them and see if it works with that minimal config.
Altough the fact that you say that www.url.com/index.php works but www.url.com doesn't is weird to say the least. _________________ Code, justify, code - Pitr Dubovich |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MaxMara n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/107069426541346b65654c0.gif)
Joined: 31 Aug 2004 Posts: 35 Location: Vienna/Austria
|
Posted: Thu Nov 17, 2005 1:51 pm Post subject: |
|
|
The strangest thing I just found out is:
people who visit my website from outside (not from our LAN) don't have this problem. This happens only if someone in our LAN wants to open our website.
Hope this makes it easier to solve my problem...
Thanks again. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Crimson Rider Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Final Fantasy/Final_Fantasy_8_-_Zell.gif)
Joined: 23 Jun 2003 Posts: 462 Location: Delft, the Netherlands
|
Posted: Fri Nov 18, 2005 8:45 am Post subject: |
|
|
Does your LAN run a proxy perhaps?
Does your Apache virt. host file depend on IP or DNS ?
Is the DNS your LAN get's any different then those outside.
You could change the virt. host entry to be your default entry, then look up the site with just the ip. Just to test. _________________ Code, justify, code - Pitr Dubovich |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
MaxMara n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/107069426541346b65654c0.gif)
Joined: 31 Aug 2004 Posts: 35 Location: Vienna/Austria
|
Posted: Fri Nov 18, 2005 9:23 am Post subject: |
|
|
Hi again!
After purging squids cache everything worked out fine. Thank you very much. ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Crimson Rider Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Final Fantasy/Final_Fantasy_8_-_Zell.gif)
Joined: 23 Jun 2003 Posts: 462 Location: Delft, the Netherlands
|
Posted: Fri Nov 18, 2005 9:48 am Post subject: |
|
|
Wow, the proxy thing suggestion was a long shot Glad it worked out. _________________ Code, justify, code - Pitr Dubovich |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|