httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [users@httpd] rewrite and pdf files
Date Tue, 16 Sep 2003 11:51:54 GMT


I have the following configuration for a virtual host:

        ServerName      my-server
        ServerAlias     my-server my-alias
        RewriteEngine   On
        RewriteCond     %{HTTP_HOST}    ^my-alias*
        RewriteRule     ^\/(.*)$          http://%{HTTP_HOST}/my-alias-subdir/$1
        DocumentRoot    /my-websource

I have /my-websource/my-alias-subdir/test.pdf

Using IE:
When I open http://my-server/my-alias-subdir/test.pdf, then the pdf document is
displayed correctly in the acrobat plugin.
When I open http://my-alias/test.pdf, there comes a dialog asking me to download
the file, no other choice.

It works as it should (open acrobat also when using the rewritten alias url) in
both netscape and opera.

I read some postings about problems with pdf and ie but none regarding my
problem with rewritten urls. Any help would be greatly

best regards,

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message