Guest User

Untitled

a guest
Mar 28th, 2016
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. Apache2.conf:
  2.  
  3. <Directory />
  4. Options FollowSymLinks
  5. AllowOverride None
  6. Require all denied
  7. </Directory>
  8.  
  9. <Directory /usr/share>
  10. AllowOverride None
  11. Require all granted
  12. </Directory>
  13.  
  14. <Directory /var/www/>
  15. Options Indexes FollowSymLinks
  16. AllowOverride None
  17. Require all granted
  18. </Directory>
  19.  
  20. mydomain.com.lc.conf in sites-available:
  21.  
  22. <VirtualHost *:80>
  23. ServerName mydomain.com.lc
  24. ServerAlias www.mydomain.com.lc
  25. ServerAdmin [email protected]
  26. DocumentRoot /var/www/html/mydomain.com.lc/com_mydomain/
  27. SetEnv APPLICATION_ENV local
  28. <Directory /var/www/html/mydomain.com.lc/com_mydomain >
  29. Options Indexes FollowSymLinks MultiViews
  30. AllowOverride all
  31. Require all granted
  32. </Directory>
  33. <Directory /var/www/var/www/html/mydomain.com.lc/com_mydomain/*>
  34. Allow from all
  35. Deny from none
  36. Order deny,allow
  37. </Directory>
  38.  
  39. ErrorLog ${APACHE_LOG_DIR}/error.log
  40. CustomLog ${APACHE_LOG_DIR}/access.log combined
  41. </VirtualHost>
  42.  
  43. 000-default.conf:
  44.  
  45. <VirtualHost *:80>
  46. ServerAdmin webmaster@localhost
  47. DocumentRoot /var/www/html
  48. ErrorLog ${APACHE_LOG_DIR}/error.log
  49. CustomLog ${APACHE_LOG_DIR}/access.log combined
  50. </VirtualHost>
  51.  
  52.  
  53. etc/hosts:
  54.  
  55. 127.0.0.1 mydomain.com.lc
  56.  
  57.  
  58. .htaccess:
  59.  
  60. Options +FollowSymLinks
  61.  
  62. RewriteEngine On
  63.  
  64. RewriteBase /
  65.  
  66. <IfModule mod_rewrite.c>
  67. RewriteEngine On
  68. RewriteBase /
  69. RewriteRule ^index\.php$ - [L]
  70. RewriteCond %{REQUEST_FILENAME} !-f
  71. RewriteCond %{REQUEST_FILENAME} !-d
  72. RewriteRule . /index.php [L]
  73. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment