Skip to content

Instantly share code, notes, and snippets.

@nanoninja
Created March 1, 2017 09:55
Show Gist options
  • Save nanoninja/b4d80a91e722d908dd579ae70e311e54 to your computer and use it in GitHub Desktop.
Save nanoninja/b4d80a91e722d908dd579ae70e311e54 to your computer and use it in GitHub Desktop.
Apache VirtualHost
# /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