SSL on virtualhost


SUBMITTED BY: Guest

DATE: Oct. 22, 2013, 2:34 p.m.

FORMAT: Bash

SIZE: 1.2 kB

HITS: 1051

  1. Listen 8081
  2. NameVirtualHost *:8081
  3. <VirtualHost *:8081>
  4. servername localhost
  5. ServerAlias localhost
  6. DocumentRoot /var/www/html/astpp
  7. DirectoryIndex index.php index.html index.shtml index.htm default.htm Default.aspx Default.asp index.pl
  8. <IfModule mod_suphp.c>
  9. AddType application/x-httpd-php .php
  10. RemoveHandler .php
  11. <FilesMatch "\.php$" >
  12. SetHandler x-httpd-php
  13. </FilesMatch>
  14. <Location />
  15. suPHP_AddHandler x-httpd-php
  16. </Location>
  17. </IfModule>
  18. CustomLog /var/log/httpd/astpp_access_log combined
  19. ErrorLog /var/log/httpd/astpp_error_log
  20. SSLEngine on
  21. SSLCertificateFile /etc/pki/tls/certs/ca.crt
  22. SSLCertificateKeyFile /etc/pki/tls/private/ca.key
  23. Alias /astpp/ "/var/www/html/astpp/"
  24. <Directory "/var/www/html/astpp/">
  25. AllowOverride All
  26. </Directory>
  27. Options +Includes +FollowSymlinks
  28. <Location /stats>
  29. Options +Indexes
  30. </Location>
  31. </VirtualHost>

comments powered by Disqus