I have an IBM HTTP server running on an IBMi. The server directories in the IFS are located at: /www/MYWEBSERVER/.
I am getting 403 Forbidden errors for any resources that I place in subfolders of htdocs. For example, I get 403 Forbidden errors for:
Is this an IFS directory permissions problem?
I tried Googling for answers. I also looked at the 644 page pdf documentation on IBM HTTP Server for i, which mentions 403 Forbidden errors only three times, and then only in the context of the directive AuthzSendForbiddenOnFailure. I am new to web server administration. But I don't think I should be using this directive to solve the problem that I'm having.
Below is more detail using the style.css file as an example.
I uploaded an index.html file and a style.css file into the /www/MYWEBSERVER/htdocs/ directory. I used a browser to navigate to the URL. I saw my web page with the CSS applied.
I then created a new /www/MYWEBSERVER/htdocs/css/ directory. I moved my style.css style sheet into the new directory. I changed the link tag in the head of my index.html file to read:
Now, when I navigate to the URL, I see my web page, but none of the CSS is applied. When I opened the developer tools in Chrome, I see a message that says:
net::ERR_ABORTED 403 (Forbidden)
Senior Software Engineer II
Dot Foods, Inc.
217-773-4486 ext. 12676
As an Amazon Associate we earn from qualifying purchases.