Trying to create a RewriteRule with a ScriptAlias
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: users@xxxxxxxxxxxxxxxx
- Subject: Trying to create a RewriteRule with a ScriptAlias
- From: "thomas Armstrong" <tarmstrong@xxxxxxxxx>
- Date: Thu, 1 Mar 2007 11:47:07 +0100
- Delivered-to: mailing list users@xxxxxxxxxxxxxxxx
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=iSedanO3hcgBw3GWmrKgqDnyXND7u70jowTPety8Cwcx0CkKHXDzO+riH88Ad3DLw9IiK/Y5WrzebbFSPLYADeK9OreuBOs0qxCJeFB2QNUDudvbzMVkX1NExD6IWSkDrd0wUIlDzWZL1JbVsQR6VUiua/0JnkWpt5jpIJgnCQs=
- Mailing-list: contact users-help@xxxxxxxxxxxxxxxx; run by ezmlm
- Reply-to: users@xxxxxxxxxxxxxxxx
Hi.
Using Apache 2.0.59, I want to create a new RewriteRule outside the
DocumentRoot and modified my 'httpd.conf':
--------------
<VirtualHost mydomain>
DocumentRoot /home/project/web
ServerName mydomain
ScriptAlias /foo/ /home/project/modules/foo/web
<Directory "/home/project/modules/">
AddHandler application/x-httpd-php .php
RewriteEngine on
RewriteRule /foo/show/(.*) /bloggersnet/show.php?id=$1 [L,QSA]
</Directory>
<Directory "/home/project/web">
</Directory
</VirtualHost>
---------------
But when accessing 'http://mydomain/foo/show/5' I get a 404 error
message ('http://mydomain/foo/show.php?id=5' works ok).
What am I doing wrong? Thank you very much
---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
" from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
[Index of Archives]
[Open SSH Users]
[Linux ACPI]
[Linux Kernel]
[Linux Laptop]
[Kernel Newbies]
[Security]
[Netfilter]
[Bugtraq]
[Squid]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Samba]
[Video 4 Linux]
[Device Mapper]