Advertisement
Guest User

Untitled

a guest
Jun 6th, 2018
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1.  
  2. ServerAdmin root@localhost
  3. #ServerName www.example.com:80
  4.  
  5. #
  6. # Deny access to the entirety of your server's filesystem. You must
  7. # explicitly permit access to web content directories in other
  8. # <Directory> blocks below.
  9. #
  10. <Directory /var/www/html/ProyectoPrograInternet/public/>
  11. AllowOverride none
  12. Require all granted
  13. </Directory>
  14.  
  15. #
  16. # DocumentRoot: The directory out of which you will serve your
  17. # documents. By default, all requests are taken from this directory, but
  18. # symbolic links and aliases may be used to point to other locations.
  19. #
  20. DocumentRoot "/var/www/html/ProyectoPrograInternet/public/"
  21.  
  22. #
  23. # Relax access to content within /var/www.
  24. #
  25. <Directory /var/www/html/ProyectoPrograInternet/public/>
  26. RewriteEngine On
  27. RewriteBase /var/www/html/ProyectoPrograInternet/public
  28. AllowOverride All
  29. # Allow open access:
  30. Require all granted
  31. </Directory>
  32.  
  33. # Further relax access to the default document root:
  34. <Directory "/var/www/html">
  35. #
  36. # Possible values for the Options directive are "None", "All",
  37. # or any combination of:
  38. # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
  39. #
  40. # Note that "MultiViews" must be named *explicitly* --- "Options All"
  41. # doesn't give it to you.
  42. #
  43. # The Options directive is both complicated and important. Please see
  44. # http://httpd.apache.org/docs/2.4/mod/core.html#options
  45. # for more information.
  46. #
  47. Options Indexes FollowSymLinks
  48.  
  49. #
  50. # AllowOverride controls what directives may be placed in .htaccess files.
  51. # It can be "All", "None", or any combination of the keywords:
  52. # Options FileInfo AuthConfig Limit
  53. #
  54. AllowOverride All
  55.  
  56. #
  57. # Controls who can get stuff from this server.
  58. #
  59. Require all granted
  60. </Directory>
  61.  
  62. #
  63. # DirectoryIndex: sets the file that Apache will serve if a directory
  64. # is requested.
  65. #
  66. <IfModule dir_module>
  67. DirectoryIndex index.html
  68. </IfModule>
  69.  
  70. #
  71. # The following lines prevent .htaccess and .htpasswd files from being
  72. # viewed by Web clients.
  73. #
  74. <Files ".ht*">
  75. Require all denied
  76. </Files>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement