httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris" <listsch...@leftbrained.org>
Subject RE: [users@httpd] Single file to be served irrespective of the url
Date Fri, 07 May 2004 18:13:23 GMT
I have a Server which all the content pages are being handled through a
single php file, except for javascript,css, and images. This is what the
config looks like:

AliasMatch  ^/(js|css|images)/(.*) /usr/local/apache/vhosts/admin/root/$1/$2
AliasMatch  ^/(.*)$
/usr/local/apache/vhosts/admin/root/main.php/$1

if the URL starts with /js/ ,/css/, or /images/ It will just pass it
through. You could have any number of these before your all-encompassing
AliasMatch.

I really don't *know* that this is the best thing. I'm not familiar with
mod_rewrite overhead as opposed to mod_alias overhead, though it seems that
AliasMatch would be faster than mod_rewrite, even though it does a regular
expression match every request.

Chris

-----Original Message-----
From: Tim Burden [mailto:tim@burden.ca]
Sent: Friday, May 07, 2004 9:29 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Single file to be served irrespective of the
url


Hi Chris,

That one looks interesting. Is it better than the mod_rewrite option? And,
is there an easy way to make it NOT apply to certain files, as in

RewriteEngine on
RewriteCond %{REQUEST_URI} !/photo.php
RewriteRule .* index.php

----- Original Message -----
From: "Chris" <listschris@leftbrained.org>
To: <users@httpd.apache.org>
Sent: Friday, May 07, 2004 11:20 AM
Subject: RE: [users@httpd] Single file to be served irrespective of the url


> AliasMatch  ^(.*)$ /usr/local/apache/htdocs/catalog.html
>
> Is what I would use, I *definitely* wouldn't try to use the ErrorDocument,
> since those send Error headers as well.
>
> Chris
>
> -----Original Message-----
> From: mseethar [mailto:mseethar@employees.org]
> Sent: Friday, May 07, 2004 4:15 AM
> To: users@httpd.apache.org
> Subject: [users@httpd] Single file to be served irrespective of the url
>
>
> Hi folks,
> I have a requirement to configure the apache to serve a file
> called catalog.html, irrespective of the url that is being requested.
> Could somebody help me out how to do this?
>
> Thanks,
>   - Madhu
>
>
> ---------------------------------------------------------------------
> 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
>


---------------------------------------------------------------------
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


Mime
View raw message