I have worked as mentioned in my snips above, unfortunately i ended up with result as Task Failed.
Please do some more research from your end (i was able to do only as above) and try to perform, all the best.
I tired to access the " Select Port to view Host 1" and choose the port number as 8080…but still I’m getting view of Quiz question page…which port number should i give the view the apache web page
Please suggest what is wrong. Is it because I have marked the directive AllowOverride as None. Should this be All?
As per Disable Apache Web Directory Listing Using .htaccess File, it says to create .htaccess file.
a. What is the difference between creating this file and updating the same details in httpd.conf file?
b. which path do I need to create .htaccess file?
c. Also how is there a way to verify if directory listing has been disabled?
AllowOverride All means you are allowing Apache to overwrite config settings for a particular directory location using .htaccess file. If you have set AllowOverride None then even if you keep .htaccess under that directory location it won’t be effective.
Whatever path is asked in the question to disable directory listing for e.g /var/www/html/
Lets say if apache document root is /var/www/html and you have disabled directory listing for /var/www/html/somedir then you can check in the browser by opening this URL http://<your-website>/somedir, it should not list the files/directories present under /var/www/html/somedir directory.
Hi @Inderpreet@Tej-Singh-Rana
Is there any other way to verify if directory listing is indeed disabled using curl or any other command line utility?
The challenge here is, I am not able to verify using browser
If you are seeing your data listed in the browser after accessing "http://“your-website”/somedir URL then directory listing isn’t disabled for this directory.
You can also use command line utility like elinks to test the same.