Tag:apachewampphp
Article From:https://segmentfault.com/q/1010000012145443
Question:

Under the wamp/www directory, there is no phpMyAdmin folder and no.Htaccess file.
But how can you access the code in wamp/apps/phpmyadmin4.7.4 through http://localhost/phpmyadmin/?

Answer 0:

wampThere’s a alias folder in the directory, and you see it
The corresponding function is this

Answer 1:

Previously, I did not notice that by searching for alias in httpd.conf, I found:

LoadModule alias_module modules/mod_alias.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so

Include "${INSTALL_DIR}/alias/*"

That is to say, the files under the alias directory under the installation directory will be included.
The file format of the alias configuration is like this:

Alias /adminer "e:/wamp32/apps/adminer4.3.1/"

<Directory "e:/wamp32/apps/adminer4.3.1/">
    Options +Indexes +FollowSymLinks
    AllowOverride all
  <IfDefine APACHE24>
    Require local
  </IfDefine>
  <IfDefine !APACHE24>
    Order Deny,Allow
      Deny from all
      Allow from localhost ::1 127.0.0.1
    </IfDefine>
</Directory>

It can be added automatically by Wamp.
Thank you for your answer.

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *