Label: style blog Io color OS use SP file Div
Bytes -------------------------------------------------------------------------------------------------------
Configure the VM:
1. Bind a domain name
Vim/etc/hosts # Add a format such as 192.168.1.11 www. chenwei. ws
2. Add a VM
CD to the root directory, run vhost. Sh to add the VM, and enter the domain name.
3. Edit the configuration file
Vim/usr/local/nginx/CONF/vhost/www. chenwei. ws. co
1, modify httpd.confLocate the Apache installation directory conf\httpd.conf file, remove the following two lines of text before the # number as follows: Enable Apache virtual host function LoadModule Vhost_alias_module modules/mod_vhost_ Alias.soMake httpd-vhosts.conf file work Include Conf/extra/httpd-vhosts.conF if multi-port, need to increase Listen such as: Listen Listen 88882, modify httpd-vhosts.conf
I. Modification of httpd.conf
Open the Appserv installation directory, locate the httpd.conf file, and remove the # number in front of the two lines below.
[plain] view plain copy #LoadModule vhost_alias_module modules/mod_vhost_alias.so Remove # means the virtual Host feature that enables Apache.
[plain] view plain copy #Include conf/extra/httpd-vhosts.conf remove this line of # meaning from conf/extra/
RHEL7 down Nginx Virtual Host Configuration in the first two sections of the installation and configuration files, here write the configuration file, you can modify the configuration file according to the content. http { se
that two times Z) to save and exit.3, enter sudo vim/applications/xampp/xamppfiles/etc/extra/httpd-vhosts.conf on the terminal to configure the URL. Press ESC to exit the edit state, and press SHIFT + ZZ (Note that two times Z) to save and exit.4, give the file read and Write permission, enter sudo chmod-r 777 www on the terminal . Configuration completeStep Three:Modify the configuration database catalog
When configuring the tomcat virtual host, how does one write a separate file for each virtual host? server. xml contains these subfiles? For example, in OneinStack, the details of the tomcat configuration file after the JAVA environment
1.Modified in Standalone.xml:Enable-welcome-root= "true" to False2.In the first project, add Jboss-web.xml (and Web. XML a directory).The second one:In turn ...3.Add the following to the subsystem tag that contains virtual-server in the Standalone.xml file:In turn ...Virtual-server jboss-web.xml virtual-host in Youthfo
Because of a long time did not configure Apache, although said know how to configure Nginx, but it took some time to write down the next time directly withOn the other options File menu, open configuration file, select Vhosts-confNginx words useserver {Listen80; server_name the name of your virtual directory; Root"The directory path you want to manipulate"; Location/ {index index.html index.htm index
Ubuntu under Apache Virtual Host configuration Enable site deactivation site method A2ensite/a2dissite such as adding a ecshop virtual machine first to/etc/apache2/site-available/ Set up a file in the directory Ecshop and add
Ubuntu Configuration
"alt=" Wkiom1lfcukaha2qaaa64-4tzek719.jpg-wh_50 "/>5. Start a new network servicePing Host Test Network650) this.width=650; "Src=" https://s2.51cto.com/wyfs02/M00/9B/2B/wKioL1lfCuPiJS9sAACy-vYSC0A696.jpg-wh_500x0-wm_ 3-wmp_4-s_3303745397.jpg "style=" Float:none; "title=" 21.jpg "alt=" Wkiol1lfcupijs9saacy-vysc0a696.jpg-wh_50 "/>6. Host pings the IP of CentOS in the vir
tap Properties such as:650) this.width=650; "border=" 0 "width=" 376 "height=" 442 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" spacer.gif "/>and then tap Internet protocol version 4 , which can be seen as:650) this.width=650; "border=" 0 "width=" 411 "height=" 428 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png")
Phpstudy is a local debugging environment that integrates the latest apache+php+mysql+phpmyadmin+zendoptimizer.
The latest version:phpstudy Simplified Chinese version of the 2011 final version of this to pchome download
1, installation
Installation is very simple, do not repeat it;
2, configure the virtual host
left Click on the small icon in the Tray, the pop-up menu bar select "Site Management", wi
Copy codeThe Code is as follows: fivetrees extra # cat httpd-vhosts.conf_bak
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# Machine you can setup VirtualHost containers for them. Most deployments
# Use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the docum
subdirectory is used to store site logs.
Create a VM management account and Set Directory Permissions
Sudo useradd-g www-data-d/home/www/192.168.0.20.wuser1
Sudo useradd-g www-data-d/home/www/192.168.0.252 wuser2
Sudo passwd wuser1
Sudo passwd wuser2
Sudo chown-R wuser1.www-data/home/www/192.168.0.133
Sudo chown-R wuser2.www-data/home/www/192.168.0.252
1.
Assign the administrator of the 192.168.0.20.vm to wuser1, assign the administrator of the 192.168.0.252 VM to wuser2, and allow them to log
1. Open the Apache httpd.conf file to find# Virtual Hosts#Include conf/extra/httpd-vhosts.confThis section removes the "#" in front of the include conf/extra/httpd-vhosts.conf. 2. Modify the Hosts file located in the (Win7) c:/windows/system32/drivers/etc/directoryAdd a section: 127.0.0.1 x.acme.com (the domain name you use to access) 3. I use the Wamp package, so to the C:/wamp/bin/apache/apache2.2.11/conf/extra directoryModify File httpd-vhosts.conf
I. Port listening
Port: a number that allows a computer (with only one IP address) to provide multiple services (multiple functions)
Web Service 80
FTP 81
Receive email 110
Email sending 25
MySQL database 3306, but not absolutely !! A computer has about 60 thousand ports, but a server also provides services with over 10 ports.
Apache can be regarded as a waiter. The outside world initiates any request. However, some requests are not within the request range (beyond the port range). Pay at
Nginx virtual host configuration instance
1. Add the virtual host configuration at the end of the/usr/local/nginx/CONF/nginx. conf file. The instance is as follows:
Server{Listen 80;SERVER_NAME www.hebaodans.com;Index index.htm
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.