apache alias 2.4 Windows


How to add a virtual folder on a location other than the main site.

The directives provided by this module used to manipulate and control the URLs on arrival queries on the server. The Alias ​​and ScriptAlias ​​directives are used to match URLs with file system paths. This will serve content that are not located in the DocumentRoot tree as if they were actually there.
Very simple to set up.
In conf.php file, Copy and paste the following lines between :

# "${SRVROOT}/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
<IfModule mime_module>
(environ ligne 400 de votre ficchier de configuration apache)


Alias "/gallerie-photo" "C:/server/photographie/"
<Directory "C:/server/photographie/">
        Options Indexes MultiViews
        AllowOverride all
    	Require all granted

What you need to change:

>Alias "/ici taper le lien exact-cet espace doit être plein, sans espace, inclure tiret ou underscore si vous le souhaitez" "C:/chemin vers le dossier"
<Directory "C:/chemin vers le dossier/">
        Options Indexes MultiViews
        AllowOverride all
    	Require all granted

[site_reviews_summary assigned_to=”post_id”]

[site_reviews_form assign_to=”post_id”]
Rate this article

[site_reviews display=10 assigned_to=”post_id”]

Leave a Reply

Your email address will not be published. Required fields are marked *