Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ServerAdmin root@localhost
- #ServerName www.example.com:80
- #
- # Deny access to the entirety of your server's filesystem. You must
- # explicitly permit access to web content directories in other
- # <Directory> blocks below.
- #
- <Directory /var/www/html/ProyectoPrograInternet/public/>
- AllowOverride none
- Require all granted
- </Directory>
- #
- # DocumentRoot: The directory out of which you will serve your
- # documents. By default, all requests are taken from this directory, but
- # symbolic links and aliases may be used to point to other locations.
- #
- DocumentRoot "/var/www/html/ProyectoPrograInternet/public/"
- #
- # Relax access to content within /var/www.
- #
- <Directory /var/www/html/ProyectoPrograInternet/public/>
- RewriteEngine On
- RewriteBase /var/www/html/ProyectoPrograInternet/public
- AllowOverride All
- # Allow open access:
- Require all granted
- </Directory>
- # Further relax access to the default document root:
- <Directory "/var/www/html">
- #
- # Possible values for the Options directive are "None", "All",
- # or any combination of:
- # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
- #
- # Note that "MultiViews" must be named *explicitly* --- "Options All"
- # doesn't give it to you.
- #
- # The Options directive is both complicated and important. Please see
- # http://httpd.apache.org/docs/2.4/mod/core.html#options
- # for more information.
- #
- Options Indexes FollowSymLinks
- #
- # AllowOverride controls what directives may be placed in .htaccess files.
- # It can be "All", "None", or any combination of the keywords:
- # Options FileInfo AuthConfig Limit
- #
- AllowOverride All
- #
- # Controls who can get stuff from this server.
- #
- Require all granted
- </Directory>
- #
- # DirectoryIndex: sets the file that Apache will serve if a directory
- # is requested.
- #
- <IfModule dir_module>
- DirectoryIndex index.html
- </IfModule>
- #
- # The following lines prevent .htaccess and .htpasswd files from being
- # viewed by Web clients.
- #
- <Files ".ht*">
- Require all denied
- </Files>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement