Created
March 1, 2017 09:55
-
-
Save nanoninja/b4d80a91e722d908dd579ae70e311e54 to your computer and use it in GitHub Desktop.
Apache VirtualHost
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/apache2/sites-available/ipssi.fr.conf | |
<VirtualHost *:80> | |
ServerName ipssi.fr | |
ServerAlias www.ipssi.fr | |
ServerAlias test.ipssi.fr | |
DocumentRoot /home/dev/www/ipssi | |
<Directory /home/dev/www/ipssi> | |
Order allow,deny | |
Allow from all | |
Require all granted | |
RewriteEngine On | |
RewriteRule ^blog/article/([0-9]+)/([a-z][a-z-]*) index.php?id=$1&title=$2 [L] | |
</Directory> | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment