Advertisement
Guest User

Untitled

a guest
Nov 26th, 2011
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.08 KB | None | 0 0
  1. #
  2. # Virtual Hosts
  3. #
  4. # If you want to maintain multiple domains/hostnames on your
  5. # machine you can setup VirtualHost containers for them. Most configurations
  6. # use only name-based virtual hosts so the server doesn't need to worry about
  7. # IP addresses. This is indicated by the asterisks in the directives below.
  8. #
  9. # Please see the documentation at
  10. # <URL:http://httpd.apache.org/docs/2.2/vhosts/>
  11. # for further details before you try to setup virtual hosts.
  12. #
  13. # You may use the command line option '-S' to verify your virtual host
  14. # configuration.
  15.  
  16. ##########################################################
  17. # Use name-based virtual hosting. #
  18. # All NameVirtualHost lines are in this file #
  19. # Don't remove this line or apache will generate errors. #
  20. ##########################################################
  21. Include /etc/httpd/conf/ips.conf
  22.  
  23. #
  24. # VirtualHost example:
  25. # Almost any Apache directive may go into a VirtualHost container.
  26. # The first VirtualHost section is used for all requests that do not
  27. # match a ServerName or ServerAlias in any <VirtualHost> block.
  28. #
  29. #NameVirtualHost 127.0.0.1:8000
  30. #<VirtualHost 127.0.0.1:8000>
  31. # ServerAdmin admin@admin.com
  32. # DocumentRoot /home/lpfan
  33. # ServerName lpfan.ua
  34. # ErrorLog logs/lpfan-error_log
  35. # CustomLog logs/lpfan-access_log common
  36. #</VirtualHost>
  37.  
  38. <VirtualHost 95.211.9.38:8000>
  39. ServerAdmin webmaster@localhost
  40. AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2
  41. DocumentRoot /var/www/html
  42. ServerName localhost
  43. ScriptAlias /cgi-bin/ /var/www/cgi-bin/
  44. CustomLog /var/log/httpd/homedir.log homedir
  45. </VirtualHost>
  46.  
  47. <VirtualHost 95.211.9.38:443>
  48. ServerAdmin webmaster@localhost
  49. AliasMatch ^/~([^/]+)(/.*)* "/home/$1/public_html$2"
  50. DocumentRoot /var/www/html
  51. ServerName localhost
  52. ScriptAlias /cgi-bin/ /var/www/cgi-bin/
  53. CustomLog /var/log/httpd/homedir.log homedir
  54.  
  55. SSLEngine on
  56. SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
  57. SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
  58. </VirtualHost>
  59.  
  60.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement