Skip to content

Instantly share code, notes, and snippets.

@sh6210
Last active September 11, 2021 18:54
Show Gist options
  • Save sh6210/7c5f21176f22156ca4bf93f4ef26f3ca to your computer and use it in GitHub Desktop.
Save sh6210/7c5f21176f22156ca4bf93f4ef26f3ca to your computer and use it in GitHub Desktop.
/etc/apache2/sites-available/000-default
<VirtualHost *:80>
ServerAdmin admin@server.loc
ServerName test.loc
ServerAlias www.test.loc
DocumentRoot /var/www/html/test
<Directory "/var/www/html/test">
AllowOverride all
Require all granted
Options Indexes FollowSymLinks Includes
</Directory>
<FilesMatch \.php$>
# SetHandler "proxy:unix:/run/php/php5.6-fpm.sock|fcgi://localhost"
</FilesMatch>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment