Reputation: 938
I am having some trouble accessing files on Apache 2.4 running on Ubuntu.
The files that are inaccessible are being shown in the alias folder /static/.
When trying to access any of the items displayed I get the following message.
Not Found
The requested URL /static/abe.css was not found on this server.
The virtual host file for this looks like...
<VirtualHost *:80>
ServerName explorer.htmlcoin.com
Alias /static/ /home/explorer/HTMLCoinExplorer/HTMLCoin-Abe/htdocs
Alias /robots.txt /home/explorer/HTMLCoinExplorer/HTMLCoin-Abe/htdocs/robots.txt
Alias /favicon.ico /home/explorer/HTMLCoinExplorer/HTMLCoin-Abe/htdocs/favicon.ico
Alias / /usr/lib/cgi-bin/abe.fcgi/
# FcgidIOTimeout 40
ServerAdmin webmaster@localhost
<Directory />
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<Directory /home/explorer/HTMLCoinExplorer/HTMLCoin-Abe/htdocs>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<Directory /home/explorer/cgi-bin>
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Require all granted
</Directory>
# Uncomment to log Abe requests.
ErrorLog /var/log/abe_error.log
CustomLog /var/log/abe_access.log combined
</VirtualHost>
Upvotes: 0
Views: 72
Reputation: 3628
Check (fix) permission on files, in order to be readable/accessible to other (like is Apache user set in your configuration). Usually set read by others and execute/search by others. For example chmod 755 for directory, and 644 [ read by owner, write by owner , read by group, read by others] for files. You can also change you setting for folder to:
<Directory /home/explorer/HTMLCoinExplorer/HTMLCoin-Abe/htdocs/>
Options All
AllowOverride All
Require all granted
</Directory>
Just to test
Upvotes: 1