https://bz.apache.org/bugzilla/show_bug.cgi?id=60159

            Bug ID: 60159
           Summary: mod_rewrite rules not executed
           Product: Apache httpd-2
           Version: 2.4.17
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_rewrite
          Assignee: bugs@httpd.apache.org
          Reporter: star.shra...@gmail.com

Created attachment 34283
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=34283&action=edit
conf

[First post, advise where needed.]

I have a server with the following structure:

- root/
    - api/
        - products/
            - index.php
    - include/
        ...
    - index.php

The server is setup to use a virtual host which "Include"s a seaparate .conf
file attached below. I can confirm that the conf file is read. But when the url
is http://example.com/api/products, it 404s. The log contains just these 2
lines:

[Tue Sep 20 22:19:13.066519 2016] [rewrite:trace2] [pid 6024:tid 1016]
mod_rewrite.c(476): [client x.x.x.x:28438] x.x.x.x - -
[example.com/sid#6595032cc8][rid#65958b8330/initial] init rewrite engine with
requested uri /api/products
[Tue Sep 20 22:19:13.066519 2016] [rewrite:trace1] [pid 6024:tid 1016]
mod_rewrite.c(476): [client x.x.x.x:28438] x.x.x.x - -
[example.com/sid#6595032cc8][rid#65958b8330/initial] pass through /api/products

i.e. the RewriteRules set for /api/products aren't even run.

The following questions were from a few days back when I was trying to get this
to work via .htaccess files. They might provide more clues to the issue.

https://stackoverflow.com/questions/39402343/mod-rewrites-in-nested-htaccess-causing-strange-404
https://serverfault.com/questions/802301/mod-rewrites-in-nested-htaccess-causing-strange-404
(A user here believes this is a bug with DirectorySlash)

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org

Reply via email to