| # Licensed to the Apache Software Foundation (ASF) under one |
| # or more contributor license agreements. See the NOTICE file |
| # distributed with this work for additional information |
| # regarding copyright ownership. The ASF licenses this file |
| # to you under the Apache License, Version 2.0 (the |
| # "License"); you may not use this file except in compliance |
| # with the License. You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, |
| # software distributed under the License is distributed on an |
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| # KIND, either express or implied. See the License for the |
| # specific language governing permissions and limitations |
| # under the License. |
| |
| # phpmyadmin - Web based MySQL browser written in php |
| # |
| # Allows only localhost by default |
| # |
| # But allowing phpmyadmin to anyone other than localhost should be considered |
| # dangerous unless properly secured by SSL |
| |
| Alias /phpmyadmin /usr/share/phpmyadmin |
| Alias /phpmyadmin /usr/share/phpmyadmin |
| |
| <Directory /usr/share/phpmyadmin/> |
| <IfModule mod_authz_core.c> |
| # Apache 2.4 |
| <RequireAny> |
| Require ip 127.0.0.1 |
| Require ip ::1 |
| </RequireAny> |
| </IfModule> |
| <IfModule !mod_authz_core.c> |
| # Apache 2.2 |
| Order Deny,Allow |
| # Deny from All |
| Allow from 127.0.0.1 |
| Allow from ::1 |
| </IfModule> |
| </Directory> |
| |
| <Directory /usr/share/phpmyadmin/setup/> |
| <IfModule mod_authz_core.c> |
| # Apache 2.4 |
| <RequireAny> |
| Require ip 127.0.0.1 |
| Require ip ::1 |
| </RequireAny> |
| </IfModule> |
| <IfModule !mod_authz_core.c> |
| # Apache 2.2 |
| Order Deny,Allow |
| # Deny from All |
| Allow from 127.0.0.1 |
| Allow from ::1 |
| </IfModule> |
| </Directory> |
| |
| # These directories do not require access over HTTP - taken from the original |
| # phpmyadmin upstream tarball |
| # |
| <Directory /usr/share/phpmyadmin/libraries/> |
| Order Deny,Allow |
| # Deny from All |
| Allow from None |
| </Directory> |
| |
| <Directory /usr/share/phpmyadmin/setup/lib/> |
| Order Deny,Allow |
| # Deny from All |
| Allow from None |
| </Directory> |
| |
| <Directory /usr/share/phpmyadmin/setup/frames/> |
| Order Deny,Allow |
| # Deny from All |
| Allow from None |
| </Directory> |
| |
| # This configuration prevents mod_security at phpmyadmin directories from |
| # filtering SQL etc. This may break your mod_security implementation. |
| # |
| #<IfModule mod_security.c> |
| # <Directory /usr/share/phpmyadmin/> |
| # SecRuleInheritance Off |
| # </Directory> |
| #</IfModule> |