Apache configure the virtual directory + Zend Studio visit

1 Overview

Apache configure the virtual directory, then you can go to access by Zend Studio works only need to modify the Apache httpd.conf file.

2 Modify httpd.conf

Httpd.conf found in the Apache installation directory, in the end, add:

<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, path is the folder path.
For example, set here:

<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

D:/Desktop/111

Finally, the Apache service again.

3 Zend Studio Project

Zend Studio enter a new project:
Here Insert Picture Description
project name to correspond with the above configuration file, placed in the corresponding Location.
Here Insert Picture Description
Completion index.php:
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
the one of the <none> to replace localhost:
Here Insert Picture Description
Here Insert Picture Description
then you can visit.
Here Insert Picture Description

Guess you like

Origin blog.51cto.com/14415843/2483967