Record the process of lampp configuring the domain name directory.

WBOY
Release: 2016-08-08 09:32:15
Original
1789 people have browsed it

1. Modify the hosts file: /etx/hosts

127.0.0.1 xxx.yyy.zzz

2. Enter the lampp/etc directory.

sudo gedit httpd.conf

Search for "Include conf/extra/httpd-vhosts.conf", make sure there is no # The comment symbol

searches for ""

becomes:


# AllowOverride none
# Require all denied
Order allow, deny
Allow from all

This step is not processed. The custom directory generated later, visit xxx.yyy.zzz, is likely to be 403. Unless your directory is in /lampp/htdocs.

3. Go to lampp/etc/extra:

sudo gedit httpd-vhosts.conf

1. Comment out the unused VirtualHost

2. Add the following

NameVirtualHost *:80
DocumentRoot "/home/user/php/yyy"
ServerName xxx.yyy.zzz

/home/user/php/yyy">
#Options FollowSymLinks W#Allowoverride none
order Deny, allow
alow from all
& lt;/directory & gt;
& lt; virtualhost *: 80 & gt; s/"erSeervername localhost
& lt;/virtualhost & gt;


Restart apache when finished

The above introduces the process of recording the domain name directory configured by lampp. , including relevant content, I hope it will be helpful to friends who are interested in PHP tutorials.


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!