Guest User

Untitled

a guest
Aug 14th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. <Directory />
  2. Order deny,allow
  3. Allow from all
  4. Options None
  5. AllowOverride None
  6. </Directory>
  7.  
  8. <Directory "/var/www/vhosts">
  9. Order allow,deny
  10. Allow from all
  11. Options None
  12. AllowOverride All
  13. </Directory>
  14.  
  15. ... other modules...
  16. #LoadModule substitute_module modules/mod_substitute.so
  17. LoadModule rewrite_module modules/mod_rewrite.so
  18. #LoadModule proxy_module modules/mod_proxy.so
  19. ... other modules...
  20.  
  21. [root@foobar]# /usr/sbin/httpd -l
  22. Compiled in modules:
  23. core.c
  24. prefork.c
  25. http_core.c
  26. mod_so.c
  27.  
  28. # BEGIN WordPress
  29. <IfModule mod_rewrite.c>
  30. RewriteEngine On
  31. RewriteBase /
  32. RewriteRule ^index.php$ - [L]
  33. RewriteCond %{REQUEST_FILENAME} !-f
  34. RewriteCond %{REQUEST_FILENAME} !-d
  35. RewriteRule . /index.php [L]
  36. </IfModule>
  37. # END WordPress
  38.  
  39. <VirtualHost *:80>
  40. ServerAdmin foobar@gmail.com
  41. ServerName foobar.net
  42. ServerAlias www.foobar.net
  43. DocumentRoot /var/www/vhosts/foobar/
  44. ErrorLog /var/www/vhosts/foobar/logs/error.log
  45. CustomLog /var/www/vhosts/foobar/logs/access.log combined
  46. </VirtualHost>
  47.  
  48. Options FollowSymLink
Add Comment
Please, Sign In to add comment