LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't access new entry into my index.html file (https://www.linuxquestions.org/questions/linux-newbie-8/can%27t-access-new-entry-into-my-index-html-file-4175557489/)

pizzipie 10-29-2015 01:19 PM

Can't access new entry into my index.html file
 
I don't know whether this question goes in the server forum or not so I put it in here.

In one of Ubuntu's 14.04 update sessions it apparently updated Apache2.2 (or whatever) into Apache/2.4.7/ I have a virtual host mydb.com which has been working fine for more than a year. Now, if I try to add another item (<input type="button" class="hov" id="btn2h" value="My-Google-Mapping" onclick="window.location.href='my-mapping'"></input><br /></li>) to the index.html file /my-mapping/ I get the below error. I have absolutely no idea what it means or how to fix it. If I don't get this I get a 403 permissions error. I have set all my files to 777.

Thanks in advance for helping me to fix this.

R

403 ERROR:

FORBIDDEN

You don't have permission to access /my-mapping/ on this server.
Apache/2.4.7 (Ubuntu) Server at mydb.com Port 80



GENERATED ERROR:

[Thu Oct 29 10:55:37.071391 2015] [autoindex:error] [pid 3243] [client 127.0.0.1:32926] AH01276: Cannot serve directory /home/rick/DB-Web/my-mapping/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive, referer: http://mydb.com/

norobro 10-29-2015 02:02 PM

As the error says the server does not find an index file with the listed extensions in that directory.

You can enable server-generated directory listing with the "Options Directive". See Indexes here. Then you will see what is actually in the directory.

Reproduced error:
Quote:

[Thu Oct 29 13:40:27.195452 2015] [autoindex:error] [pid 5106] [client 192.168.2.3:47014] AH01276: Cannot serve directory /var/www/test/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive, referer: http://192.168.2.3/test.html

pizzipie 11-02-2015 03:37 PM

SOLVED: :)

Thanks norobro,

That fixed it.

R


All times are GMT -5. The time now is 08:49 AM.