Use the Wamp integrated alias function directly. As shown in figure:
Then enter the URL path to access on the command line that pops up, and the physical path is OK.
But there is a problem, when debugging locally, the following error occurs: You don ' t have permission to access
Search for a bit, get the result basically, the following settings:
The code is as follows |
Copy Code |
Options Indexes followsymlinks MultiViews AllowOverride All Order Allow,deny Allow from all |
But how to set still prompts you with don ' t have permission to access/webdev/in on the this server.
The right to modify the file does not work (it should not be a permissions issue for the folder).
Locate the file The alias directory is d:/wamp/alias/webdev.conf, and the contents of the file are as follows:
The code is as follows |
Copy Code |
alias/webdev/"d:/webdev/" <directory "d:/webdev/" > Options Indexes followsymlinks MultiViews AllowOverride All Order Allow,deny Allow from all </Directory> |
Compared with the d:/wamp/bin/apache/apache2.4.2/conf/httpd.conf, finally found that only need to add Require in the webdev.conf local can, as follows:
The code is as follows |
Copy Code |
alias/webdev/"d:/webdev/" <directory "d:/webdev/" > Options Indexes followsymlinks MultiViews AllowOverride All Order Allow,deny Allow from all Require Local </Directory> |
Finally restart Apache.