httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manuel Carrara <php...@w3suite.com>
Subject Re: Apache2: DocumentRoot: File instead a Directory - 2. Try
Date Wed, 10 Jul 2002 08:36:03 GMT
> good day, Manuel.
good day, too and thanks for your answer.

I have included a _working_ (Apache1.3.x) configuration, there you will see:
> In fact you have provided insufficient information, for example: which
> requests should be redirected to the script
Every request ;) EXCEPT the Alias Rules, see the config

> Please, provide more comprehensive description of your needs and what you
> have at the moment (configuration I mean).
Here is a _working_ exapample of my apache1.3.x configuration

<VirtualHost *>
        ServerAlias     example.com
        ServerName      example.com

        DocumentRoot    "/home/example.com/index.php"
#>> DOCUMENTROOT IS A CGI (PHP) - FILE

        #################################################################
        # ALIASES
        #################################################################
        alias "/image/" "/home/example.com/media/image/"
        alias "/flash/" "/home/example.com/media/flash/"
        alias "/videos/""/home/example.com/media/video/"
        alias "/style/" "/home/example.com/current/style/css/"
        alias "/script/""/home/example.com/script/javascript/"
        alias "/robots.txt" "/home/example.com/etc/local/robots.txt"
</VirtualHost>

This configuration workes fine in APACHE1.3.x but not in Apache2.

You see in the configuration that every request is send to that "index.php" 
file.
So every request will be handles by the script dynamically.

=======
Example
=======
You can type:
	example.com/sdfghfghjdsfkjgsdhtp348efkjg3z
	example.com
	example.com/?ejrtetdkjfgdkfg=dkjfgdkfg

All of this requests are handled by that php-script.

The static things, such as images, css, js are catched by the Alias rules and 
served normal by apache.

	example.com/image/foo.jpg       ->  apache returns foo.jpg
	example.com/image/dssdfg.jpg  ->  apache returns a 404

Maybe this information are the right you need to help me ;)

Thanks,
Manuel

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message