Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Homepage ok, other pages "Not Found" |
|
Author |
|
WilliamJonesIII
Joined: 28 Mar 2016 Posts: 2
|
Posted: Mon 28 Mar '16 18:32 Post subject: Homepage ok, other pages "Not Found" |
|
|
I have been looking at other answers here on stackoverflow and elsewhere, to no avail.
I am running a virtual-host localhost and the homepage of the site is showing up fine, but if I go to any subdirectory/subpage I see the error in this question's title.
In short, mydomain.com works. mydomain.com/downloads/ does not work.
Usually I have fixed this issue with other domains on my localhost by altering .htaccess. Here is my current setup with Apache2.conf, sites-available/mydomain.com.lc.conf, sites-available/000-default.conf, etc/hosts, and .htaccess detailed here:
http://pastebin.com/Cpgm7aYP
I have also used no .htaccess, and set permissions to 7 for all users (just for testing!) |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 29 Mar '16 11:31 Post subject: |
|
|
You are mixing The new config auth style
Code: |
Require all granted |
and the old one
Code: | Allow from all
Deny from none
Order deny,allow |
If you have 2.4 use only the new one. Since there is AllowOverride all you have to check the .htaccess files for those issues, too! |
|
Back to top |
|
WilliamJonesIII
Joined: 28 Mar 2016 Posts: 2
|
Posted: Tue 29 Mar '16 12:12 Post subject: Using 2.4.10. What to do to .htaccess? |
|
|
Hi, I am using 2.4.10 so I used only the new syntax:
http://pastebin.com/Rx8JvEC0
Still having the issue. Is there something I need to do to .htaccess? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 29 Mar '16 12:44 Post subject: |
|
|
Only bebause in the first snippet there was
Code: |
<Directory /var/www/var/www/html/mydomain.com.lc/com_mydomain/*>
Allow from all
Deny from none
Order deny,allow
</Directory>
|
The one .htacces you posted seems to be fine.
I wonder about the 404 error, cause the rewriting would prevent that.
Is mod_rewrite loaded? |
|
Back to top |
|
|
|
|
|
|