All pastes #104421 Raw Edit

Miscellany

public text v1 · immutable
#104421 ·published 2006-07-28 21:38 UTC
rendered paste body
-------------------------------------------
.htaccess
-------------------------------------------

Options +FollowSymLinks -Indexes

### mod_rewrite stuff
RewriteEngine		On
RewriteBase			/
RewriteRule			^core/(.*)/.*$				/secretdir/_www_/$1.php
RewriteRule			^admin/(.*)/.*$				/secretdir/_admin_/$1.php
RewriteRule			^error/(.*)/$				/secretdir/error/$1.php
RewriteRule			^images/(.*)$				/secretdir/images/$1

### Moved documentroot
RedirectMatch		^/$							http://becoder.vigor.cc/core/Home/

### Prevent image hotlinking
RewriteCond 		%{HTTP_REFERER} 			!^http://(.+\.)?vigor\.cc/	 															[NC]
RewriteRule 		.*\.(jpe?g|gif|bmp|png)$	/images/nohotlink.jpe																	[L]

### Some important stuff
RewriteRule			^core$						/core/Home/																				[R]
RewriteRule			^core/$						/core/Home/																				[R]
RewriteRule			^error$						/core/Home/																				[R]
RewriteRule			^error/$					/core/Home/																				[R]
RewriteRule			^images$					/core/Home/																				[R]
RewriteRule			^images/$					/core/Home/																				[R]

### Error handling
ErrorDocument		404							http://becoder.vigor.cc/error/404/
ErrorDocument		403							http://becoder.vigor.cc/error/403/

-------------------------------------------
httpd.conf
-------------------------------------------
onfiguration:
    In file: /usr/local/etc/apache22/httpd.conf
      40: Listen 80
     113: User www
     114: Group www
     135: ServerAdmin admin@vigor.cc
     144: ServerName www.vigor.cc
     151: DocumentRoot "/home/tonny/www"
     161: <Directory />
     162:   Options None
     163:   AllowOverride All
     164:   Order deny,allow
     165:   Deny from all
        : </Directory>
     178: <Directory "/home/tonny/www">
     191:   Options None
     198:   AllowOverride All
     203:   Order allow,deny
     204:   Allow from all
        : </Directory>
     213: DirectoryIndex index.html index.php index.php4 index.php3 index.phtml
     220: <FilesMatch "^\.ht">
     221:   Order allow,deny
     222:   Deny from all
        : </FilesMatch>
     232: ErrorLog /var/log/httpd/error.log
     239: LogLevel debug
     246: LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
     247: LogFormat "%h %l %u %t \"%r\" %>s %b" common
     251: LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
     267: CustomLog /var/log/httpd/access.log combined
     297: ScriptAlias /cgi-bin/ "/usr/local/www/apache22/cgi-bin/"
     313: <Directory "/usr/local/www/apache22/cgi-bin">
     314:   AllowOverride None
     315:   Options FollowSymLinks
     316:   Order allow,deny
     317:   Allow from all
        : </Directory>
     329: DefaultType text/plain
     336: TypesConfig etc/apache22/mime.types
     353: AddType application/x-compress .Z
     354: AddType application/x-gzip .gz .tgz
    In file: /usr/local/etc/apache22/extra/httpd-info.conf
      13: <Location /server-status>
      14:   SetHandler server-status
      15:   Order deny,allow
      16:   Deny from all
      17:   Allow from .vigor.cc
        : </Location>
      25: ExtendedStatus On
      32: <Location /server-info>
      33:   SetHandler server-info
      34:   Order deny,allow
      35:   Deny from all
      36:   Allow from .vigor.cc
        : </Location>
    In file: /usr/local/etc/apache22/extra/httpd-vhosts.conf
       1: NameVirtualHost *:80
       3: <VirtualHost *:80>
       4:   ServerAdmin admin@vigor.cc
       5:   DocumentRoot /home/tonny/www/non-secure
       6:   ServerName secure.vigor.cc
       7:   LogLevel debug
       8:   ErrorLog /var/log/httpd/non-secure-error.log
       9:   CustomLog /var/log/httpd/non-secure-access.log combined
      10:   RewriteEngine On
      11:   RewriteRule ^/(.*) https://secure.vigor.cc/$1 [L,R=301]
        : </VirtualHost>
      14: <VirtualHost *:80>
      15:   ServerAdmin admin@vigor.cc
      16:   DocumentRoot /home/tonny/www/main
      17:   ServerName www.vigor.cc
      18:   LogLevel debug
      19:   ErrorLog /var/log/httpd/main-error.log
      20:   CustomLog /var/log/httpd/main-access.log combined
      21:   RewriteEngine On
        : </VirtualHost>
      24: <VirtualHost *:80>
      25:   ServerAdmin admin@vigor.cc
      26:   DocumentRoot /home/tonny/www/didier
      27:   ServerName didier.vigor.cc
      28:   LogLevel debug
      29:   ErrorLog /var/log/httpd/didier-error.log
      30:   CustomLog /var/log/httpd/didier-access.log combined
        : </VirtualHost>
      33: <VirtualHost *:80>
      34:   ServerAdmin admin@vigor.cc
      35:   DocumentRoot /home/tonny/www/becoder
      36:   ServerName becoder.vigor.cc
      37:   LogLevel debug
      38:   ErrorLog /var/log/httpd/becoder-error.log
      39:   CustomLog /var/log/httpd/becoder-access.log combined
        : </VirtualHost>
    In file: /usr/local/etc/apache22/extra/httpd-manual.conf
      10: AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|pt-br|ru))?(/.*)?$ "/usr/local/share/doc/apache22$1"
      12: <Directory "/usr/local/share/doc/apache22">
      13:   Options Indexes
      14:   AllowOverride None
      15:   Order allow,deny
      16:   Allow from all
      18:   <Files *.html>
      19:     SetHandler type-map
        :   </Files>
      22:   SetEnvIf Request_URI ^/manual/(de|en|es|fr|ja|ko|pt-br|ru)/ prefer-language=$1
      23:   RedirectMatch 301 ^/manual(?:/(de|en|es|fr|ja|ko|pt-br|ru)){2,}(/.*)?$ /manual/$1$2
      25:   LanguagePriority en de es fr ja ko pt-br ru
      26:   ForceLanguagePriority Prefer Fallback
        : </Directory>
    In file: /usr/local/etc/apache22/extra/httpd-ssl.conf
      37: Listen 443
      49: AddType application/x-x509-ca-cert .crt
      50: AddType application/x-pkcs7-crl .crl
      56: SSLPassPhraseDialog builtin
      62: SSLSessionCache shmcb:/var/run/ssl_scache(512000)
      63: SSLSessionCacheTimeout 300
      68: SSLMutex file:/var/run/ssl_mutex
      74: <VirtualHost secure.vigor.cc:443>
      77:   DocumentRoot "/home/tonny/www/secure"
      78:   ServerName secure.vigor.cc:443
      79:   ServerAdmin admin@vigor.cc
      80:   ErrorLog /var/log/httpd/secure-error.log
      81:   TransferLog /var/log/httpd/secure-access.log
      85:   SSLEngine on
      91:   SSLCipherSuite HIGH
      92:   SSLProtocol +All -SSLv2
     101:   SSLCertificateFile /usr/local/etc/apache22/extra/ssl/ssl.crt
     111:   SSLCertificateKeyFile /usr/local/etc/apache22/extra/ssl/ssl.key
     121:   SSLCertificateChainFile /usr/local/etc/apache22/extra/ssl/becoder-ca.crt
     130:   SSLCACertificateFile /usr/local/etc/apache22/extra/ssl/becoder-ca.crt
     193:   <FilesMatch "\.(cgi|shtml|phtml|php)$">
     194:     SSLOptions +StdEnvVars
        :   </FilesMatch>
     196:   <Directory "/usr/local/www/apache22/cgi-bin">
     197:     SSLOptions +StdEnvVars
        :   </Directory>
     199:   <Directory "/home/tonny/www/secure">
     200:     Options FollowSymLinks
     201:     AllowOverride All
     202:     Order allow,deny
     203:     Allow From All
        :   </Directory>
     232:   BrowserMatch ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0
     238:   CustomLog /var/log/httpd/ssl_request.log "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
        : </VirtualHost>
    In file: /usr/local/etc/apache22/httpd.conf
     455: AddType application/x-httpd-php .php
     456: AddType application/x-httpd-php-source .phps
     462: SSLRandomSeed startup builtin
     463: SSLRandomSeed connect builtin
    In file: /usr/local/etc/apache22/Includes/no-accf.conf
       2: AcceptFilter http none
       3: AcceptFilter https none