daily pastebin goal
51%
SHARE
TWEET

Untitled

a guest Jan 13th, 2012 24 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  cat  /etc/apache2/sites-available/default
  2. <VirtualHost *:80>
  3.         ServerAdmin webmaster@localhost
  4.  
  5.         DocumentRoot /var/www
  6.         <Directory />
  7.                 Options FollowSymLinks
  8.                 AllowOverride None
  9.         </Directory>
  10.         <Directory /var/www/>
  11.                 Options Indexes FollowSymLinks MultiViews
  12.                 AllowOverride None
  13.                 Order allow,deny
  14.                 allow from all
  15.         </Directory>
  16.  
  17.         ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
  18.         <Directory "/usr/lib/cgi-bin">
  19.                 AllowOverride None
  20.                 Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
  21.                 Order allow,deny
  22.                 Allow from all
  23.         </Directory>
  24.  
  25.         ErrorLog /var/log/apache2/error.log
  26.  
  27.         # Possible values include: debug, info, notice, warn, error, crit,
  28.         # alert, emerg.
  29.         LogLevel warn
  30.  
  31.         CustomLog /var/log/apache2/access.log combined
  32.  
  33.     Alias /doc/ "/usr/share/doc/"
  34.     <Directory "/usr/share/doc/">
  35.         Options Indexes MultiViews FollowSymLinks
  36.         AllowOverride None
  37.         Order deny,allow
  38.         Deny from all
  39.         Allow from 127.0.0.0/255.0.0.0 ::1/128
  40.     </Directory>
  41.  
  42. </VirtualHost>
  43.  
  44.  
  45.  
  46. <VirtualHost *:80>
  47.  
  48.         ServerName www.utmxtm.com
  49.  
  50.         <Proxy *>
  51.                 Order deny,allow
  52.                 Allow from all
  53.         </Proxy>
  54.  
  55.         ProxyPass / http://www.utmxtm.com/
  56.         ProxyPassReverse / http://www.utmxtm.com/
  57.  
  58. </VirtualHost>
  59.  
  60.  
  61. #<IfModule mod_proxy.c>
  62.  #               ProxyRequests Off
  63.   #              ProxyPass /cups http://www.utmxtm.com:631/
  64.    #             ProxyHTMLURLMap http://www.utmxtm.com:631/ /cups
  65.         #        <Location /cups>
  66.          #               ProxyPassReverse http://www.utmxtm.com:631/
  67.  #                       SetOutputFilter proxy-html
  68.   #                      ProxyHTMLURLMap /               /cups/
  69.         #               ProxyHTMLURLMap /cups/          /cups/
  70.         #        </Location>
  71.        
  72. #</IfModule mod_proxy.c>
  73.  
  74.  
  75. <VirtualHost *8050>
  76.  
  77.     # Define server specific information.
  78.     ServerAdmin info@utmxtm.com
  79.     ServerName www.utmxtm.com
  80.  
  81.     # Define log locations.
  82.     ErrorLog /var/log/apache2/shrikant
  83.     CustomLog /var/log/apache2/access_log combined
  84.  
  85.    # Configure reverse proxy.
  86.     ProxyRequests Off
  87.     ProxyPreserveHost Off
  88.  
  89.     <Location />
  90.         ProxyPass http://192.168.3.125/
  91.         ProxyPassReverse http://192.168.3.125/
  92.  
  93.         Order allow,deny
  94.         Allow from all
  95.     </Location>
  96.  
  97. </VirtualHost>
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top