apache create virtual directory
Open apache configuration file httpd.conf.
Copy the code below at the bottom, save and restart the apache server.
Code is as follows
NameVirtualHost *:80 #first host, port 80 <VirtualHost *:80>
ServerAdmin [email protected] #point to local location DocumentRoot "F:wwwrootdede" #主机名称(Note that this is very important, your domain name, accurate input can be successful) ServerName www.45it.com
ServerAlias ppblog.cn #End the first host configuration </VirtualHost> #第二Hosts, port 80 <VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "F:wwwrootwordpress"
ServerName wp.ppblog.cn < Br>
ServerAlias ppblog.cn
</VirtualHost> #From here must be placed below, the third host, port 80 <VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "F:wwwroothtdocs" # means that all domain names can access ServerName *
ServerAlias *
</VirtualHost>
Creating Virtual Directories in Other Folders
DocumentRoot “E:htdocs”
Virtual The directory is created in a directory other than "F:wwwroot"; error: "You don’t have permission to access /on this server.”
The solution is as follows:
Open apache The configuration file httpd.conf.
Found
Code as follows
<Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all </Directory>
Modified to
<Directory /> Options Indexes FollowSymLinks AllowOverride None </Directory>
This will create a virtual directory anywhere.
What happened, my homepage could not be accessed? ! Hey, this free sp
Memory Control Hub = North Bridge Interface Control Hub = South Bridge Core Power Supply Chip (CPU V
I recently found openssl and found that the certificate is safe. Then on the Internet, I found out h
At present, there are more and more schools using Windows 2003 as a web server. However, for users w
WINDOWS 2003 IIS failed to start
Setting up a firewall on a Linux proxy server
Win2003 Server disk quotas are revealed
10 steps to protect IIS server security
Virtualization Popularizes Blade Server Technology Where to Go
Asp.net can not load oci.dll and other error solutions
Lenovo TR280 G3 Server Memory Installation Method
Microsoft OLE DB Provider for ODBC Drivers Error 80040e21
How Virtual Servers Work with Data Protection
The right medicine to let Win7 dual hard drive no longer automatically shut down
Windows10 forget how to reset the PIN code?
Command to view computer information under Windows
Windows8 computer how to extend the account password valid period
Win10 Xiaona does not talk how to do simple and quick solution win10 Xiaona does not speak
Talking about the first system update after Windows 7 (7022) installation
Windows7 desktop weather tool can't use the solution
Experts interpret multiple ways to upgrade to Windows 8