Skip to content

Instantly share code, notes, and snippets.

@lx78WyY0J5
Created March 20, 2023 22:31
Show Gist options
  • Save lx78WyY0J5/ed1b9eda382bf98f1f418a38a0ce1fb1 to your computer and use it in GitHub Desktop.
Save lx78WyY0J5/ed1b9eda382bf98f1f418a38a0ce1fb1 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory "/var/www/html">
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
RewriteEngine on
RewriteCond %{SERVER_NAME} =ghub.fr
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment