-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Page Not Found #9
Comments
See: http://silex.sensiolabs.org/doc/2.0/web_servers.html Just add to the .htaccess file in the web folder the following:
|
Can't figure out how this file would look like if put into the folder under web. I tried to set RewriteBase to /authmanager/web but that didn't work out at all. |
I'm having the same problem... adding the snippet of .htaccess above hasn't helped either. Part of what confuses me is that under the main php-apache2-basic-auth-manager/ directory, there's no index.php or other default file to load ... so how is this supposed to work? |
Hey, I think the link describes it all. BasicUsing the code snippet needs 'mod_rewrite' enabled (see link above).
If the authmanger's index.php (in folder web is at root level, then you can leave the comment '#' be. Btw, on a newer apache version you can use My scenarioSo my scenario it looks like this:
/var/www/wlan.home/web/users/admin (this web folder)
/var/www/wlan.home/css
/var/www/wlan.home/fonts
/var/www/wlan.home/private/php-auth-manager
Greetings, |
We should add this to the readme. |
I've spend hours try to get this work on an Ubuntu 16.04. Also with the explanation from @mickare it doesn't work! I've also renamed all folders to make them equal to the scenario above. |
@patschwork, hey! First, let's be sure you have mod_rewrite running on your machine. On Ubuntu/Debian you have a handy way to do this: sudo a2enmod rewrite
=> Module rewrite already enabled If not enable, will be after you restart Apache: sudo service apache2 restart About the Stackoverflow link you sent, By the way: this is not mandatory to this project to work, but VERY important for security reasons. |
Hi @rafaelgou, |
Hi @patschwork Greetings, mike |
Hi @mickare, (I want to you use php-apache2-basic-auth-manager in besides the yii2-framework) Bye, Patrick virtualHost file:
.htaccess:
config.yml:
|
If you depend on that module for you application, do not conditionally load it when available. Instead remove, the IfModule so you get hard errors if Apache can't parse the Rewrite directives. If you rely on something don't silently ignore errors ;-) |
When I go to any links, I get:
I followed the steps as per README, but I can't figure out the cause of the issue.
Thanks. :)
The text was updated successfully, but these errors were encountered: