Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80>
- ServerAdmin john@laptop.dj.edm
- DocumentRoot /usr/share/drupal
- ServerName laptop.dj.edm
- ErrorLog logs/laptop.dj.edm-error_log
- CustomLog logs/laptop.dj.edm-access_log common
- RewriteEngine on
- # RewriteBase /
- # RewriteCond %{REQUEST_FILENAME} !-f
- # RewriteCond %{REQUEST_FILENAME} !-d
- # RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
- # Rewrite current-style URLs of the form 'index.php?q=x'.
- # RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
- # RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
- #RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
- # RewriteCond %{REQUEST_FILENAME} !^/$
- # RewriteCond %{REQUEST_FILENAME} !^/(files|misc|uploads)(/.*)?
- RewriteCond %{REQUEST_FILENAME} !\.(php|ico|png|jpg|gif|css|js|html?)(\W.*)?
- RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
- RewriteLog /var/log/httpd/laptop.dj.edm-rewrite.log
- RewriteLogLevel 3
- </VirtualHost>
- /var/log/httpd/laptop.dj.edm-rewrite.log:
- 192.168.77.135 - - [15/Oct/2010:11:31:03 --0600] [laptop.dj.edm/sid#7f0295c073f8][rid#7f0295f229e8/initial] (2) init rewrite engine with requested uri /admin
- 192.168.77.135 - - [15/Oct/2010:11:31:03 --0600] [laptop.dj.edm/sid#7f0295c073f8][rid#7f0295f229e8/initial] (3) applying pattern '^(.*)$' to uri '/admin'
- 192.168.77.135 - - [15/Oct/2010:11:31:03 --0600] [laptop.dj.edm/sid#7f0295c073f8][rid#7f0295f229e8/initial] (2) rewrite '/admin' -> 'index.php?q=/admin'
- 192.168.77.135 - - [15/Oct/2010:11:31:03 --0600] [laptop.dj.edm/sid#7f0295c073f8][rid#7f0295f229e8/initial] (3) split uri=index.php?q=/admin -> uri=index.php, args=q=/admin
- 192.168.77.135 - - [15/Oct/2010:11:31:03 --0600] [laptop.dj.edm/sid#7f0295c073f8][rid#7f0295f229e8/initial] (2) local path result: index.php
- logs/laptop.dj.edm-error_log
- 192.168.77.135 - - [15/Oct/2010:11:31:03 -0600] "GET /admin HTTP/1.1" 400 305
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement