httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alain Roger" <raf.n...@gmail.com>
Subject Re: [users@httpd] PHP and .htaccess
Date Mon, 15 Sep 2008 12:52:38 GMT
>
> Alain, let me insist.
> Did you configure a RewriteLog and RewriteLogLevel, and did you look at the
> resulting lines, to see what happens ?
> It may save you a lot of wondering.
>
> Apart from that, from the above I guess that somewhere you have a config
> line like
> DirectoryIndex index.php
> and another one allowing directory indexes, in each of the directories to
> which you may be redirected. Yes ?
> If you did not allow directory indexes in your target directories, then
> that might explain why Apache is not looking for "index.php" and says "not
> found".
>
> no problem to insist.
yes i did it as you suggested.

so here is what i have in my httpd.conf file:

<IfModule dir_module>
>     DirectoryIndex index.html index.php
> </IfModule>
>
> Alias /se_internet/ "L:/Webserver/se/internet/"
> <Directory "L:/Webserver/se/internet/">
>     Options Indexes FollowSymLinks
>     AllowOverride All
>     Order allow,deny
>     Allow from all
> </Directory>


>
# allow to track all RewriteRules from .htaccess file
> RewriteEngine on
> RewriteLog logs/rewrite.log
> RewriteLogLevel 9
>

www.website.com is replaced by my local ip address from servername.

here is what i have in the rewrite.log file
my_IP_Addres - - [15/Sep/2008:14:42:50 +0200]
[my_IP_Addres/sid#6b5148][rid#fad060/initial] (2) init rewrite engine with
requested uri /se_internet/
my_IP_Addres - - [15/Sep/2008:14:42:50 +0200]
[my_IP_Addres/sid#6b5148][rid#fad060/initial] (1) pass through /se_internet/
my_IP_Addres - - [15/Sep/2008:14:42:50 +0200]
[my_IP_Addres/sid#6b5148][rid#fad060/initial] (3) [perdir
L:/Webserver/se/internet/] strip per-dir prefix: L:/Webserver/se/internet/
->
my_IP_Addres - - [15/Sep/2008:14:42:50 +0200]
[my_IP_Addres/sid#6b5148][rid#fad060/initial] (3) [perdir
L:/Webserver/se/internet/] applying pattern '^/([A-Za-z0-9-]+)/welcome/$' to
uri ''
my_IP_Addres - - [15/Sep/2008:14:42:50 +0200]
[my_IP_Addres/sid#6b5148][rid#fad060/initial] (1) [perdir
L:/Webserver/se/internet/] pass through L:/Webserver/se/internet/
my_IP_Addres - - [15/Sep/2008:14:42:50 +0200]
[my_IP_Addres/sid#6b5148][rid#fbe090/subreq] (2) init rewrite engine with
requested uri /se_internet/index.html
my_IP_Addres - - [15/Sep/2008:14:42:50 +0200]
[my_IP_Addres/sid#6b5148][rid#fbe090/subreq] (1) pass through
/se_internet/index.html
my_IP_Addres - - [15/Sep/2008:14:42:50 +0200]
[my_IP_Addres/sid#6b5148][rid#fbe090/subreq] (3) [perdir
L:/Webserver/se/internet/] strip per-dir prefix:
L:/Webserver/se/internet/index.html -> index.html
my_IP_Addres - - [15/Sep/2008:14:42:50 +0200]
[my_IP_Addres/sid#6b5148][rid#fbe090/subreq] (3) [perdir
L:/Webserver/se/internet/] applying pattern '^/([A-Za-z0-9-]+)/welcome/$' to
uri 'index.html'
my_IP_Addres - - [15/Sep/2008:14:42:50 +0200]
[my_IP_Addres/sid#6b5148][rid#fbe090/subreq] (1) [perdir
L:/Webserver/se/internet/] pass through L:/Webserver/se/internet/index.html
my_IP_Addres - - [15/Sep/2008:14:42:50 +0200]
[my_IP_Addres/sid#6b5148][rid#fbe090/subreq] (2) init rewrite engine with
requested uri /se_internet/index.php
my_IP_Addres - - [15/Sep/2008:14:42:50 +0200]
[my_IP_Addres/sid#6b5148][rid#fbe090/subreq] (1) pass through
/se_internet/index.php
my_IP_Addres - - [15/Sep/2008:14:42:50 +0200]
[my_IP_Addres/sid#6b5148][rid#fbe090/subreq] (3) [perdir
L:/Webserver/se/internet/] strip per-dir prefix:
L:/Webserver/se/internet/index.php -> index.php
my_IP_Addres - - [15/Sep/2008:14:42:50 +0200]
[my_IP_Addres/sid#6b5148][rid#fbe090/subreq] (3) [perdir
L:/Webserver/se/internet/] applying pattern '^/([A-Za-z0-9-]+)/welcome/$' to
uri 'index.php'
my_IP_Addres - - [15/Sep/2008:14:42:50 +0200]
[my_IP_Addres/sid#6b5148][rid#fbe090/subreq] (1) [perdir
L:/Webserver/se/internet/] pass through L:/Webserver/se/internet/index.php
my_IP_Addres - - [15/Sep/2008:14:42:50 +0200]
[my_IP_Addres/sid#6b5148][rid#fb5078/initial] (2) init rewrite engine with
requested uri /se_internet/en/welcome/
my_IP_Addres - - [15/Sep/2008:14:42:50 +0200]
[my_IP_Addres/sid#6b5148][rid#fb5078/initial] (1) pass through
/se_internet/en/welcome/
my_IP_Addres - - [15/Sep/2008:14:42:50 +0200]
[my_IP_Addres/sid#6b5148][rid#fb5078/initial] (1) [perdir
L:/Webserver/se/internet/en/] pass through
L:/Webserver/se/internet/en/welcome
my_IP_Addres - - [15/Sep/2008:14:42:53 +0200]
[my_IP_Addres/sid#6b5148][rid#fad060/initial] (2) init rewrite engine with
requested uri /favicon.ico
my_IP_Addres - - [15/Sep/2008:14:42:53 +0200]
[my_IP_Addres/sid#6b5148][rid#fad060/initial] (1) pass through /favicon.ico

is it better ?
:-)

Mime
View raw message