Advertisement
Guest User

Untitled

a guest
Jun 21st, 2017
469
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <VirtualHost *:80>
  2.     ServerAdmin john@laptop.dj.edm
  3.     DocumentRoot /usr/share/drupal
  4.     ServerName laptop.dj.edm
  5.     ErrorLog logs/laptop.dj.edm-error_log
  6.     CustomLog logs/laptop.dj.edm-access_log common
  7.    RewriteEngine on
  8. #   RewriteBase /
  9. #   RewriteCond %{REQUEST_FILENAME} !-f
  10.  #  RewriteCond %{REQUEST_FILENAME} !-d
  11.   # RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
  12.   # Rewrite current-style URLs of the form 'index.php?q=x'.
  13. #  RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
  14.  # RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
  15.   #RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
  16. # RewriteCond  %{REQUEST_FILENAME} !^/$
  17.  # RewriteCond  %{REQUEST_FILENAME} !^/(files|misc|uploads)(/.*)?
  18.   RewriteCond  %{REQUEST_FILENAME} !\.(php|ico|png|jpg|gif|css|js|html?)(\W.*)?
  19.   RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
  20.   RewriteLog /var/log/httpd/laptop.dj.edm-rewrite.log
  21.   RewriteLogLevel 3
  22. </VirtualHost>
  23.  
  24. /var/log/httpd/laptop.dj.edm-rewrite.log:
  25. 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
  26. 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'
  27. 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'
  28. 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
  29. 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
  30.  
  31. logs/laptop.dj.edm-error_log
  32. 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