Apache configuration virtual directory + Zend studio access

Time:2020-5-22

1 General

Apache configures the virtual directory, which can be accessed through Zend studio’s project. You only need to modify Apache’s httpd.conf Documents

2 modification httpd.conf

Find the httpd.conf , add at the end:

<IfModule dir_module>
    DirectoryIndex index.html intex.htm index.php
    Alias /alias path
    <Directory path>
        Options All
        AllowOverride None
        Require all granted
    </Directory>
</IfModule>

Where alias is the alias and path is the folder path
For example, here is set:

<IfModule dir_module>
    DirectoryIndex index.html intex.htm index.php
    Alias /111 D:/Desktop/111
    <Directory D:/Desktop/111>
        Options All
        AllowOverride None
        Require all granted
    </Directory>
</IfModule>

Alias 111, path in

D:/Desktop/111

Finally, re – Apache services

3 Zend studio project

Enter Zend studio to create a new project:
Apache configuration virtual directory + Zend studio access
The project name should correspond to the above configuration file and be placed under the corresponding location
Apache configuration virtual directory + Zend studio access
completion index.php :
Apache configuration virtual directory + Zend studio access
Apache configuration virtual directory + Zend studio access
Apache configuration virtual directory + Zend studio access
Replace < none > with localhost:
Apache configuration virtual directory + Zend studio access
Apache configuration virtual directory + Zend studio access
Then you can visit it
Apache configuration virtual directory + Zend studio access