Advertisement
Guest User

https

a guest
Aug 29th, 2013
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. <VirtualHost *:80>
  2. ServerName 192.168.1.203
  3. RewriteEngine on
  4. ReWriteCond %{SERVER_PORT} !^443$
  5. RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]
  6. </VirtualHost>
  7.  
  8. <VirtualHost *:443>
  9. ServerAdmin webmaster@localhost
  10. ServerName 192.168.1.203
  11. SSLEngine on
  12. SSLCertificateFile /etc/apache2/ssl/apache.crt
  13. SSLCertificateKeyFile /etc/apache2/ssl/apache.key
  14. DocumentRoot /var/www
  15. <Directory />
  16. Options FollowSymLinks
  17. AllowOverride None
  18. </Directory>
  19. <Directory /var/www/>
  20. Options Indexes FollowSymLinks MultiViews
  21. AllowOverride None
  22. Order allow,deny
  23. allow from all
  24. RedirectMatch ^/$ /tiki-11.0/
  25. </Directory>
  26.  
  27. ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  28. <Directory "/usr/lib/cgi-bin">
  29. AllowOverride None
  30. Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  31. Order allow,deny
  32. Allow from all
  33. </Directory>
  34.  
  35. ErrorLog ${APACHE_LOG_DIR}/error.log
  36.  
  37. # Possible values include: debug, info, notice, warn, error, crit,
  38. # alert, emerg.
  39. LogLevel warn
  40.  
  41. CustomLog ${APACHE_LOG_DIR}/access.log combined
  42.  
  43. Alias /doc/ "/usr/share/doc/"
  44. <Directory "/usr/share/doc/">
  45. Options Indexes MultiViews FollowSymLinks
  46. AllowOverride None
  47. Order deny,allow
  48. Deny from all
  49. Allow from 127.0.0.0/255.0.0.0 ::1/128
  50. </Directory>
  51.  
  52. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement