Created
May 26, 2020 04:19
-
-
Save rexfordnyrk/e9a70aa58edc15003f66284b11a2e474 to your computer and use it in GitHub Desktop.
a virtualhost for centos apache php setup
This file contains hidden or 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
| <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