apache2.2.x+tomcat single IP multiple domain name multi-site Virtual host configuration detailed (Win2003 environment)
A new server was recently purchased, and the apache+tomcat+php Web application environment was successfully consolidated under WINDOWS2003. The next encounter is through the server under the single IP configuration of multiple sites and
The multi-point host in the Network may have multiple IP addresses at the same time, especially when Dynamic Host address allocation is used, it is difficult to know what the IP address on the host is. The following uses a C program to list all IP addresses on the host. The
Mysql uses mysql_multi to configure multiple instances of one host
Mysqld_multi can manage multiple frames to listen to the mysqld processes connected to different Unix socket files and TCP/IP ports. It can start or stop servers or report their current status.
You can manage multiple instances.
I have previously in
Tomcat (coexistence of multiple single-host Tomcat servers)
Introduction:
Tomcat extension (one server runs multiple tomcat servers)
1. Install JDK and Tomcat
Shell> rpm-ivh jdk-8u25-linux-x64.rpm # Install jdk, jdk version is best consistent with tomcat
Shell> tar zxf apache-tomcat-8.0.14.tar.gz-C/usr/local/Shell> cd ..Shell> cp-r apache-tomcat-8.0.14 tomcat1 #
--------------------Updated on 2011-12-13 Day---------------------I'm having a problem with MySQL being disabled today.Access forbidden!
New XAMPP Security Concept:Access to the requested directory was only available from the local network.This setting can is configured in the file "httpd-xampp.conf".
If you think this is a server error, please contact the webmaster.Error 403www.server.comTue Dec 13 11:00:00 2011Apache/2.2.14 (Unix) dav/2 mod_ssl/2.2.14 openssl/0.9.8l php/5.3.1 mod_p
For a Linux host with multiple IP addresses, first we can check the IP address of the host in linux: # ifconfigeth0 Link encap: Ethernet HWaddr 00: 16: 8d: B7: 6A: E0 inet addr: 192.168.1.111 Bcast: 192.168.1.255 Mask: 255.255.252.0 inet6 addr: fd80: 213: 8eff: feb7: 2ae0/64 Scope: Link up broadcast running multicast mtu: 1500 Metric: 1 RX packets: 7077 errors: 0
650) this.width=650; "style=" width:602px;height:394px; "title=" the same IP address different ports. jpg "alt=" Wkiol1sqhtqcfcq7aad5a0uhami511.jpg "src=" http://s3.51cto.com/wyfs02/M02/57/0D/ Wkiol1sqhtqcfcq7aad5a0uhami511.jpg "width=" 458 "height=" 326 "/>when browsing the Web site, often encountered in the browser address input Http://IP Address: Port number address for website access. In fact, this is the application of the TCP port number, on the same server with a different port number of
: Configure a virtual host with a different port(1) [[email protected] html]# vim/etc/httpd/conf/httpd.conf# Change to the port you want to add Change:136 Row Listen 80 are:Listen 80Listen 8080(2) Create 2 more virtual hosts1007 1008 ServerAdmin [email protected]1009 documentroot/var/www/html/1010 ServerName www.xianggang.cn1011 Errorlog Logs/www.xianggang.cn-error_log1012 Customlog Logs/www.xianggang.cn-access_log Common1013 1014 1015 ServerAd
Serveralias: Server alias. It can be used in Apache to set the domain name received by the VM or to receive the domain name for wildcard resolution. The specific settings are as follows:
1. Set the VM to receive multiple domain names
A virtual host often receives multiple domain name resolutions, such as a virtual host
1. Virtual directoryEach Internet service can be published from multiple directories, a virtual server can have one host directory and any number of other publishing directories, and other publishing directories are called virtual directories.Specifies the customer URL address that the service submits to the customer as a directory tree for the entire publishing catalog set. The
virtual host
#声明主机头必须加这条指令, No person host header configuration does not take effect
#VirtualHost节点下面ServerName就是要绑定的域名, DocumentRoot represents the directory to which this domain name refers
#本机测试的话请在hosts中进行域名绑定如 127.0.0.1 www.mysite1.com
namevirtualhost *:8080
After the configuration, restart the Apache service, browser input www.mysite1.com:8080, will be automatically directed to the D:\Program
.
LogLevel warn
CustomLog/var/log/apache2/access. log combined
The bold part is the key point.(3) release site# Ln-s/etc/apache2/sites-available/default-me/etc/apache2/sites-enabled/001-default
(4) restart the service#/Etc/init. d/apache2 restart
(5) testHttp: // localhost: 8000/
If the access is normal, the configuration is correct.
The code is as follows:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~# Virtual Hosts## If you want to maintain mu
If there are two domain names, respectively hello.abc.com and play.abc.com, you need to bind these two domain names toIP is 219.13.34.32 on the server1. First you need to specify the domain name and IP correspondence in the Domain Name Vendor Management page2.WEB Server Configuration Good lamp environment3. Put the corresponding source code into the/usr/local/apache/htdocs directory, respectively named upload and upload24. Configure Apache#vi httpd.confChange intoServerName 219.13.34.32:80Then a
Gaosheng technology, the largest cloud service provider in northeast China, has multiple website vulnerabilities. Arbitrary files include Unauthorized Access Getshell (sensitive host information/internal information across China)
My big northeast cloud service providerYou can add, delete, or tamper with the host information of the monitored company nationwide!
Configuration of the 1.apache2First of all, to configure the apache2, if not configured, please refer to my previous blog: Lamp configuration2. The resolution of the domain nameResolves a record of www and @ for all domain names to the IP of the cloud server3. Configuration of the virtual Host 1. Configuring httpd.conf
If etc/httpd/conf/httpd.conf is present, configure this httpd.conf
If etc/httpd/conf/httpd.conf does not exist, we need t
, the MySQL service runs correctly.The log does not see any exceptions at this point, but the client may still not connect:Execute mysql-uroot-p ' root ' ==> Access denied.Cause: MySQL can connect, but the initialization of the password is incorrect.Solution:Service mysql_6301 StopMysqld_safe--user=mysql_1--skip-grant-tables--skip-networking (Skip password authorization)Another open client, Mysql-uroot MySQL, you can come in.View User table: Select User, ho
inModify the DNS master configuration file as shown inModify the DNS zone configuration file as shown inCopy the zone data file and configure it as shownRestart the DNS service and test to see if it can be parsed as shownThe configuration for the same host name with the same IP for the different port numbers as shownCreate a directory of different hostnames and write a test content redirect to the directory as shown inAdd a port number for the listen
Release date:Updated on:
Affected Systems:Foreman Description:--------------------------------------------------------------------------------Bugtraq id: 63785CVE (CAN) ID: CVE-2013-4386
Foreman is a management tool that can automatically maintain the server lifecycle.
The host and Host group parameters stored in Foreman 1.2.3 and earlier versions have multiple
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.