Skip to content

Instantly share code, notes, and snippets.

@rexfordnyrk
Created May 26, 2020 04:19
Show Gist options
  • Select an option

  • Save rexfordnyrk/e9a70aa58edc15003f66284b11a2e474 to your computer and use it in GitHub Desktop.

Select an option

Save rexfordnyrk/e9a70aa58edc15003f66284b11a2e474 to your computer and use it in GitHub Desktop.
a virtualhost for centos apache php setup
<VirtualHost *:8080>
ServerAdmin user@example.com
ServerName example.com
DocumentRoot "/var/www/html"
# Further relax access to the default document root:
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
ErrorLog "logs/example.com_error_log"
LogLevel debug
<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
<IfModule logio_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
CustomLog "logs/example.com.access_log" combined
</IfModule>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment