Gossamer Forum
Home : General : Internet Technologies :

mod_rewrite - Virtual?

Quote Reply
mod_rewrite - Virtual?
Hi guys/gals,

I'm trying to figure out why this code in my httpd.conf file isn't working :/

Code:
<VirtualHost 207.97.217.140:80>

DocumentRoot "/home/user/web/sites/www.domain.com"
ServerName www.domain.com

RewriteEngine on
RewriteRule ^/.*L([0-9]+)/?$ /page.cgi?g=Detailed/$1.html [L]


DirectoryIndex index.html index.php index.htm index.shtml index.php4 index.php3 index.phtml index.cgi

# logs
TransferLog /home/user/web/admin/logs/traffic/log.www.domain.com.txt
CustomLog /home/user/web/admin/logs/traffic/log.www.domain.com.txt "combined"
ErrorLog /home/user/web/admin/logs/errors/error.www.domain.com.error
Options ExecCGI +FollowSymLinks

</VirtualHost>
The error being reported isn't any more help either :/

Quote:
[Mon Feb 21 16:53:39 2005] [error] [client 81.153.51.200] File does not exist: /home/user/web/sites/www.domain.com/sdfsdfs_L_16/

I've rebooted the machine several times... but I just can't get it to work.

Is there something really stupid that I've missed? Pirate

TIA

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] mod_rewrite - Virtual? In reply to
**bump**

Unsure

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] mod_rewrite - Virtual? In reply to
Andy, is the following an accurate example of the format you're using?

Code:
sdfsdfs_L_16/

if so, your rewrite rule isn't going to match that because it's not expecting an underscore after "L"

Philip
------------------
Limecat is not pleased.
Quote Reply
Re: [fuzzy logic] mod_rewrite - Virtual? In reply to
OMG.. you're right! It really has been a long week already Unimpressed

http://www.domain.com/dfsdfsdf_L16/ works fine Smile

Thanks for pointing out my stupid mistake =)

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!