allow directory browsing in the apache2.conf file - not working
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
I am trying to allow directory browsing in the apache2.conf
file, but when restarting the server, I get an error. This error make the web server crash and I can't get access to the localhost directory. So I have to remove this line of code again, to make server available. How can I allow directory browsing to a specific folder in my web server? Is it possible to allow directory access from the apache2.conf
file?
Here is a clip from my code in Ubuntu:
server apache2
add a comment |Â
up vote
0
down vote
favorite
I am trying to allow directory browsing in the apache2.conf
file, but when restarting the server, I get an error. This error make the web server crash and I can't get access to the localhost directory. So I have to remove this line of code again, to make server available. How can I allow directory browsing to a specific folder in my web server? Is it possible to allow directory access from the apache2.conf
file?
Here is a clip from my code in Ubuntu:
server apache2
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am trying to allow directory browsing in the apache2.conf
file, but when restarting the server, I get an error. This error make the web server crash and I can't get access to the localhost directory. So I have to remove this line of code again, to make server available. How can I allow directory browsing to a specific folder in my web server? Is it possible to allow directory access from the apache2.conf
file?
Here is a clip from my code in Ubuntu:
server apache2
I am trying to allow directory browsing in the apache2.conf
file, but when restarting the server, I get an error. This error make the web server crash and I can't get access to the localhost directory. So I have to remove this line of code again, to make server available. How can I allow directory browsing to a specific folder in my web server? Is it possible to allow directory access from the apache2.conf
file?
Here is a clip from my code in Ubuntu:
server apache2
server apache2
edited Feb 16 at 14:05
![](https://i.stack.imgur.com/Lrlbx.jpg?s=32&g=1)
![](https://i.stack.imgur.com/Lrlbx.jpg?s=32&g=1)
pa4080
12.3k52357
12.3k52357
asked Feb 16 at 12:24
user794322
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
First of all there is a typo in your code. AllowOvveride
should be AllowOverride
.
Here are few other tips:
Alias /nytest /var/www/nytest # this directive will make the directory accessible at http://localgost/nytest in case that your DocumentRoot is not '/var/www/' but '/var/www/html/' as it is by default
<Directory /var/www/nytest>
Options +Indexes
IndexOptions FancyIndexing FoldersFirst NameWidth=* DescriptionWidth=* # better appearance
DirectoryIndex Disabled # disable the 'execution' of the index files
AllowOverride None # disable .htaccess files
AddType text/plain .html .htm .shtml .php .phtml .php5 # display these file types as plain text
php_admin_flag engine off # don't run arbitrary PHP code; if you've other scripting languages, disable them too.
Order allow,deny
Allow from all
Require all granted
</Directory>
Thanks for the help. I tried it, but i get an error saying "You don't have permission to access / on this server. Server unable to read htaccess file, denying access to be safe". What could be the reason for this error, do i need to change the .htaccess file?
â user794322
Feb 16 at 15:19
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
First of all there is a typo in your code. AllowOvveride
should be AllowOverride
.
Here are few other tips:
Alias /nytest /var/www/nytest # this directive will make the directory accessible at http://localgost/nytest in case that your DocumentRoot is not '/var/www/' but '/var/www/html/' as it is by default
<Directory /var/www/nytest>
Options +Indexes
IndexOptions FancyIndexing FoldersFirst NameWidth=* DescriptionWidth=* # better appearance
DirectoryIndex Disabled # disable the 'execution' of the index files
AllowOverride None # disable .htaccess files
AddType text/plain .html .htm .shtml .php .phtml .php5 # display these file types as plain text
php_admin_flag engine off # don't run arbitrary PHP code; if you've other scripting languages, disable them too.
Order allow,deny
Allow from all
Require all granted
</Directory>
Thanks for the help. I tried it, but i get an error saying "You don't have permission to access / on this server. Server unable to read htaccess file, denying access to be safe". What could be the reason for this error, do i need to change the .htaccess file?
â user794322
Feb 16 at 15:19
add a comment |Â
up vote
0
down vote
accepted
First of all there is a typo in your code. AllowOvveride
should be AllowOverride
.
Here are few other tips:
Alias /nytest /var/www/nytest # this directive will make the directory accessible at http://localgost/nytest in case that your DocumentRoot is not '/var/www/' but '/var/www/html/' as it is by default
<Directory /var/www/nytest>
Options +Indexes
IndexOptions FancyIndexing FoldersFirst NameWidth=* DescriptionWidth=* # better appearance
DirectoryIndex Disabled # disable the 'execution' of the index files
AllowOverride None # disable .htaccess files
AddType text/plain .html .htm .shtml .php .phtml .php5 # display these file types as plain text
php_admin_flag engine off # don't run arbitrary PHP code; if you've other scripting languages, disable them too.
Order allow,deny
Allow from all
Require all granted
</Directory>
Thanks for the help. I tried it, but i get an error saying "You don't have permission to access / on this server. Server unable to read htaccess file, denying access to be safe". What could be the reason for this error, do i need to change the .htaccess file?
â user794322
Feb 16 at 15:19
add a comment |Â
up vote
0
down vote
accepted
up vote
0
down vote
accepted
First of all there is a typo in your code. AllowOvveride
should be AllowOverride
.
Here are few other tips:
Alias /nytest /var/www/nytest # this directive will make the directory accessible at http://localgost/nytest in case that your DocumentRoot is not '/var/www/' but '/var/www/html/' as it is by default
<Directory /var/www/nytest>
Options +Indexes
IndexOptions FancyIndexing FoldersFirst NameWidth=* DescriptionWidth=* # better appearance
DirectoryIndex Disabled # disable the 'execution' of the index files
AllowOverride None # disable .htaccess files
AddType text/plain .html .htm .shtml .php .phtml .php5 # display these file types as plain text
php_admin_flag engine off # don't run arbitrary PHP code; if you've other scripting languages, disable them too.
Order allow,deny
Allow from all
Require all granted
</Directory>
First of all there is a typo in your code. AllowOvveride
should be AllowOverride
.
Here are few other tips:
Alias /nytest /var/www/nytest # this directive will make the directory accessible at http://localgost/nytest in case that your DocumentRoot is not '/var/www/' but '/var/www/html/' as it is by default
<Directory /var/www/nytest>
Options +Indexes
IndexOptions FancyIndexing FoldersFirst NameWidth=* DescriptionWidth=* # better appearance
DirectoryIndex Disabled # disable the 'execution' of the index files
AllowOverride None # disable .htaccess files
AddType text/plain .html .htm .shtml .php .phtml .php5 # display these file types as plain text
php_admin_flag engine off # don't run arbitrary PHP code; if you've other scripting languages, disable them too.
Order allow,deny
Allow from all
Require all granted
</Directory>
edited Feb 16 at 14:27
answered Feb 16 at 14:09
![](https://i.stack.imgur.com/Lrlbx.jpg?s=32&g=1)
![](https://i.stack.imgur.com/Lrlbx.jpg?s=32&g=1)
pa4080
12.3k52357
12.3k52357
Thanks for the help. I tried it, but i get an error saying "You don't have permission to access / on this server. Server unable to read htaccess file, denying access to be safe". What could be the reason for this error, do i need to change the .htaccess file?
â user794322
Feb 16 at 15:19
add a comment |Â
Thanks for the help. I tried it, but i get an error saying "You don't have permission to access / on this server. Server unable to read htaccess file, denying access to be safe". What could be the reason for this error, do i need to change the .htaccess file?
â user794322
Feb 16 at 15:19
Thanks for the help. I tried it, but i get an error saying "You don't have permission to access / on this server. Server unable to read htaccess file, denying access to be safe". What could be the reason for this error, do i need to change the .htaccess file?
â user794322
Feb 16 at 15:19
Thanks for the help. I tried it, but i get an error saying "You don't have permission to access / on this server. Server unable to read htaccess file, denying access to be safe". What could be the reason for this error, do i need to change the .htaccess file?
â user794322
Feb 16 at 15:19
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1006774%2fallow-directory-browsing-in-the-apache2-conf-file-not-working%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password