LoadModule mem_cache_module modules/mod_mem_cache.so LoadModule disk_cache_module modules/mod_disk_cache.so LoadModule cache_module modules/mod_cache.so LoadModule file_cache_module modules/mod_file_cache.so LoadModule auth_digest_module modules/mod_auth_digest.so LoadModule auth_basic_module modules/mod_auth_basic.so LoadModule authz_default_module modules/mod_authz_default.so LoadModule authz_owner_module modules/mod_authz_owner.so LoadModule authz_dbm_module modules/mod_authz_dbm.so LoadModule authz_user_module modules/mod_authz_user.so LoadModule authz_groupfile_module modules/mod_authz_groupfile.so LoadModule authz_host_module modules/mod_authz_host.so LoadModule authn_default_module modules/mod_authn_default.so LoadModule authn_dbd_module modules/mod_authn_dbd.so LoadModule authn_anon_module modules/mod_authn_anon.so LoadModule authn_dbm_module modules/mod_authn_dbm.so LoadModule authn_file_module modules/mod_authn_file.so # LoadModule foo_module modules/mod_foo.so # Statically compiled modules (those listed by `httpd -l') do not need # directives contained in it are actually available _before_ they are used. # have to place corresponding `LoadModule' lines at this location so the # To be able to use the functionality of a module which was built as a DSO you # prevent Apache from glomming onto all bound IP addresses. # Change this to Listen on specific IP addresses as shown below to # Listen: Allows you to bind Apache to specific IP addresses and/or # PidFile: The file in which the server should record its process # httpd daemons, you will need to change at least LockFile and PidFile. If you wish to share the same ServerRoot for multiple # ServerRoot at a non-local disk, be sure to point the LockFile directive # Do not add a slash at the end of the directory path. # configuration, error, and log files are kept. # ServerRoot: The top of the directory tree under which the server's # server as "/Applications/MAMP/Library/logs/foo_log". # with ServerRoot set to "/Applications/MAMP/Library" will be interpreted by the # with "/", the value of ServerRoot is prepended - so "logs/foo_log" # of the server's control files begin with "/" (or "drive:/" for Win32), the # Configuration and logfile names: If the filenames you specify for many # Do NOT simply read the instructions in here without understanding # for a discussion of each configuration directive. # configuration directives that give the server its instructions. # This is the main Apache HTTP server configuration file. Here they say it could be a firewall problem, but if it was that, the environment should work, doesn't it? And is not only if I want to set the Authorization header to a variable any environment variable I set through SetEnv or SetEnvIf can't be seen in my PHP scripts.I have a little problem, I just configured Mamp on Mac with virtual host, but every time I try to access to the project, I get the error "The requested URL / was not found on this server": I know there's other questions about it, but unfortunately the solutions they give don't fix my problem. I ask the hosting guys about changes on Apache, but they told me nothing has changed.Īnd the environment variables. htaccess files causes a 500 error (I don't know why) SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 htaccess file and to use Authorization header are active, even those to be able to declare environment variables with SetEnvIf (like I said, I don't know why I can't use them neither).Īnd the server configuration is as follow: I asked for the active modules in the server (I'm paying for a hosting), to see if the correct ones are enable, and they sent me this:įrom what I've been reading, all the necessary modules to rewrite the. A couple of weeks ago I wasn't having any problems, but all of a sudden, my PHP scripts (hence the JwtAuthentication middleware) cannot "see" the Authorization header and neither the "SetEnv/SetEnvIf" variables I declare in the. My client is sending the header Authorization just fine. After a lot of researching, and try and error, I've become desperate.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |