I need to integrate some servlets into a php application allowing users to authentify before runing the servlets.
The php application in on an Apache Web server and the servlets deployed in Weblogic on another host.
As the php application already use a MYSQL table to authentify users, i tried to use mod_auth_mysql to restrict access to servlets path to authentify users.
But it seems that mod_auth_mysql only allow defining restricted areas with <Directory> in httpd.conf.
I tried to add in httpd.conf
Sorry, there's no way to do what you wish with mod_auth_mysql (or any Apache authentication). This is an Apache restriction, not mod_auth_mysql.
The Apache authentication/authorization mechanism only works in <directory> entries and .htaccess files. It can't be used in <location> entries or any other section of your config file. See the apache docummentation for more information.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I need to integrate some servlets into a php application allowing users to authentify before runing the servlets.
The php application in on an Apache Web server and the servlets deployed in Weblogic on another host.
As the php application already use a MYSQL table to authentify users, i tried to use mod_auth_mysql to restrict access to servlets path to authentify users.
But it seems that mod_auth_mysql only allow defining restricted areas with <Directory> in httpd.conf.
I tried to add in httpd.conf
<Location /myServlets>
SetHandler weblogic-handler
WebLogicHost wlHost
WebLogicPort wlPort
AuthMySQLEnable On
AuthMySQLHost mysqlHost
AuthMySQLPort mysqlPort
AuthMySQLUser user
AuthMySQLPassword pwd
AuthMySQLDB db
AuthMySQLUserTable userTable
AuthMySQLNameField userField
AuthMySQLPasswordField pwdField
AuthMySQLGroupField grpField
AuthMySQLPwEncryption none
</Location>
But it doesn't work.
How could i do ?
Thanks.
Eric
Sorry, there's no way to do what you wish with mod_auth_mysql (or any Apache authentication). This is an Apache restriction, not mod_auth_mysql.
The Apache authentication/authorization mechanism only works in <directory> entries and .htaccess files. It can't be used in <location> entries or any other section of your config file. See the apache docummentation for more information.