Several important options of the apache configuration file
Source: Internet
Author: User
Article title: several important options of the apache configuration file. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
The following are important options in the apache configuration file httpd. conf:
########################## Configuration notes ########### ###
### Enable apache to parse php files. I installed php under: c:/php.
ScriptAlias/php/"C:/php /"
AddType application/x-httpd-php3. php
AddType application/x-httpd-php3. php3
AddType applications/x-httpd-php3. phtml
Action application/x-httpd-php3/php/php.exe
#### If apache runs on a single machine, it may be because it is not configured. you can add the # sign before serverName.
ServerName OK .xahu.edu.cn
#### Place your webpage files in other directories and set the root directory of the website
DocumentRoot "d:/web"
#### Using a virtual directory, you can use http: // 127.0.0.1/mysql to access the file d:/webnow/phpmyadmin/
Alias/mysql "d:/webnow/phpmyadmin /"
##### Using a VM allows apache to parse several domain names
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service