SHOW:
|
|
- or go back to the newest paste.
| 1 | $ cat sub.domain.com.conf | |
| 2 | ||
| 3 | <VirtualHost *:80 *:443> | |
| 4 | ServerName sub.domain.com | |
| 5 | ServerAlias *.domain.com | |
| 6 | ||
| 7 | ServerAdmin [email protected] | |
| 8 | DocumentRoot "/var/www/sub.domain.com/httpdocs" | |
| 9 | AccessFileName .htaccess | |
| 10 | ErrorDocument 400 / | |
| 11 | ErrorDocument 401 / | |
| 12 | ErrorDocument 403 / | |
| 13 | ErrorDocument 404 / | |
| 14 | ErrorDocument 500 / | |
| 15 | ||
| 16 | <Directory "/var/www/sub.domain.com/httpdocs"> | |
| 17 | Options -Indexes FollowSymLinks | |
| 18 | AllowOverride None | |
| 19 | Order allow,deny | |
| 20 | allow from all | |
| 21 | </Directory> | |
| 22 | ||
| 23 | <IfModule mod_fcgid.c> | |
| 24 | SuexecUserGroup username usergroup | |
| 25 | FcgidIOTimeout 7200 | |
| 26 | <Directory "/var/www/sub.domain.com/httpdocs"> | |
| 27 | Options +ExecCGI | |
| 28 | AllowOverride All | |
| 29 | AddHandler fcgid-script .php | |
| 30 | FCGIWrapper /var/www/sub.domain.com/php-fcgi-scripts/php-fcgi-starter .php | |
| 31 | Order allow,deny | |
| 32 | Allow from all | |
| 33 | </Directory> | |
| 34 | </IfModule> | |
| 35 | ||
| 36 | SSLEngine on | |
| 37 | SSLCertificateFile /etc/httpd/ssl/domain.com/domain.com.cert | |
| 38 | SSLCertificateKeyFile /etc/httpd/ssl/domain.com/domain.com.key | |
| 39 | SSLCertificateChainFile /etc/httpd/ssl/domain.com/domain.com.ca-bundle | |
| 40 | ||
| 41 | ErrorLog logs/sub.domain.com/error.log | |
| 42 | LogLevel warn | |
| 43 | LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
| |
| 44 | LogFormat "%h %l %u %t \"%r\" %>s %b" common | |
| 45 | LogFormat "%{Referer}i -> %U" referer
| |
| 46 | - | </VirtualHost> |
| 46 | + | |
| 47 | CustomLog logs/sub.domain.com/access.log combined | |
| 48 | </VirtualHost> | |
| 49 | ||
| 50 | ||
| 51 | $ cat conf.d/php.conf | |
| 52 | ||
| 53 | # | |
| 54 | # PHP is an HTML-embedded scripting language which attempts to make it | |
| 55 | # easy for developers to write dynamically generated webpages. | |
| 56 | # | |
| 57 | <IfModule prefork.c> | |
| 58 | LoadModule php5_module modules/libphp5.so | |
| 59 | </IfModule> | |
| 60 | <IfModule worker.c> | |
| 61 | LoadModule php5_module modules/libphp5-zts.so | |
| 62 | </IfModule> | |
| 63 | ||
| 64 | # | |
| 65 | # Cause the PHP interpreter to handle files with a .php extension. | |
| 66 | # | |
| 67 | AddHandler php5-script .php | |
| 68 | AddType text/html .php | |
| 69 | ||
| 70 | # | |
| 71 | # Add index.php to the list of files that will be served as directory | |
| 72 | # indexes. | |
| 73 | # | |
| 74 | DirectoryIndex index.php | |
| 75 | ||
| 76 | # | |
| 77 | # Uncomment the following line to allow PHP to pretty-print .phps | |
| 78 | # files as PHP source code: | |
| 79 | # | |
| 80 | #AddType application/x-httpd-php-source .phps |