You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Dennis Madsen <de...@demaweb.dk> on 2006/03/08 20:32:33 UTC
[users@httpd] Advanced Problem with Virtual Host
Hi,
I have a running apace-webserver, but have not discovered a problem.
When I visit e.g.:
http://www.demahost.dk/support/
http://www.demahost.dk/admin/
My browser shows this sites:
http://www.demahost.dk/support.php
http://www.demahost.dk/admin.php
I really don't know why - It's very scary. It looks like a rewriterule, but
I havn't any htaccess.
You can see my httpd.conf here:
http://www.demahost.dk/httpd.conf
And here my vhost.conf which I include in httpd.conf:
http://www.demahost.dk/vhosts.conf
(I have removed all my vhosts to simplify the docs)
Anybody who can help me?
Please tell me if you don't understand the problem.
Best regards
Dennis Madsen
SV: [users@httpd] Advanced Problem with Virtual Host
Posted by Dennis Madsen <de...@demaweb.dk>.
Thanks for you fast answer! :)
I'm happy :)
Med venlig hilsen / Best regards
Dennis Madsen
DeMaWeb
http://www.demaweb.dk
CVR-nr.: 2895 9486
-----Oprindelig meddelelse-----
Fra: jslive@gmail.com [mailto:jslive@gmail.com] På vegne af Joshua Slive
Sendt: 8. marts 2006 20:42
Til: users@httpd.apache.org
Emne: Re: [users@httpd] Advanced Problem with Virtual Host
On 3/8/06, Dennis Madsen <de...@demaweb.dk> wrote:
> When I visit e.g.:
>
> http://www.demahost.dk/support/
>
> http://www.demahost.dk/admin/
>
> My browser shows this sites:
>
> http://www.demahost.dk/support.php
>
> http://www.demahost.dk/admin.php
Remove MultiViews from your Options directives and perhaps set
AcceptPathInfo off.
Multiviews tells apache that if it can't find a file matching a
particular request, it should check the directory for files with the
same basename. This is used in content negotiation when you want to
serve different files depending on what the browser can handle.
The slash on the end, which would normally indicate a directory, is
treated as PATH_INFO (trailing path information passed to the script)
and not as part of the path to the script. This behavior can be
modified with the AcceptPathInfo directive.
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Advanced Problem with Virtual Host
Posted by Joshua Slive <jo...@slive.ca>.
On 3/8/06, Dennis Madsen <de...@demaweb.dk> wrote:
> When I visit e.g.:
>
> http://www.demahost.dk/support/
>
> http://www.demahost.dk/admin/
>
> My browser shows this sites:
>
> http://www.demahost.dk/support.php
>
> http://www.demahost.dk/admin.php
Remove MultiViews from your Options directives and perhaps set
AcceptPathInfo off.
Multiviews tells apache that if it can't find a file matching a
particular request, it should check the directory for files with the
same basename. This is used in content negotiation when you want to
serve different files depending on what the browser can handle.
The slash on the end, which would normally indicate a directory, is
treated as PATH_INFO (trailing path information passed to the script)
and not as part of the path to the script. This behavior can be
modified with the AcceptPathInfo directive.
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org