In Apache domain name-based virtual host configuration, multiple methods can achieve the same purpose. In the configuration process, record the configuration that is considered simple and clear by one person, so as not to forget.
1. When multiple sites are built on a Linux host, a default site is required. In the httpd. conf file, modify and add:
DocumentRoot/var
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.confNamevirtualhost default is as follows:Namevir
Write the installation configuration httpd service domain-based virtual host script
Requirements:
1, automatic installation, basic configuration
2, through the prompt input domain name, website root directory, and so on to complete the virtual host add work
#!/bin/bash
Service httpd Stop >/dev/null
conf= "/usr/local/apache/conf/httpd.conf"
vhostconf= "/usr
Configuring the Oracle 11g Data Guard (logical standby) Oracle Data Guard logical standby database based on the same host uses a backup of the master database to first create a physical standby database, then convert it to a logical standby database. After that, the master database transmits the logs to the slave database. The slave database uses logminer to parse the SQL statements executed by the master d
Cacti adds monitoring remote Linux host based on the SNMP service
After Cacti is installed, only the local host can be monitored by default. To monitor Linux and Windows Remote clients, you must install the SNMP service on the remote client host to capture data through SNMP, the Cacti server uses RRDtool to generate ch
Article Title: three virtual host configuration methods: IP, port, and domain name. 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.
1. Virtual Hosts With the same IP address and different ports
1) vi/etc/http/conf/httpd. conf
2) Change the Listen field
Listen 80
Listen 8888.
(The preceding settings indicat
Recommended reading: Using Python to detect host survival ports and check for surviving hosts
Let's share with you the Python language implementation gets the hostname to kill the process code based on the port.
Ip=os.popen ("Ifconfig eth0|grep ' inet addr ' |awk-f ': ' {print $} ' |awk ' {print $} ') Ip=ip. Read (). Strip () Pid=os.popen ("Netstat-anp|grep 8998 |awk ' {print $7} '). Read (). Split ('/')
Attention:The settings file is typically in the/ETC/HTTPD/CONF.D directory1. vim/etc/httpd/conf.d/vhost1.conf Create the Vhost1.conf file and enter the following contentServerName www1.magedu.comDocumentroot/data/vhosts/www12. vim/etc/httpd/conf.d/vhost2.conf Create the Vhost2.conf file and enter the following contentServerName www1.magedu.comDocumentroot/data/vhosts/www1Using HTTPD-T to detect syntax with or without errors3, mkdir-pv/etc/httpd/conf.d/vhosts/www{1,2} Create directory4. Create a
Article Title: Why does the access restriction of apache based on host name or domain name fail to be correctly executed. 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.
Problem Analysis: There may be two reasons: first, there is a problem with the data on the DNS. for
First, setAnalog domainwww.wang.org, blog.wang.org, bbs.wang.orgSite Folder/var/html/www,/var/html/blog,/var/html/bbsSecond, the implementation of the steps:1. Create a Web site folderWatermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqv/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity /center ">2. Write the content to three index . Easy to test3.cd to extra under the conf folder in ApacheWatermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqv/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve
Installing OpenSSLGenerate a private keyCd/etc/pki/tlsVI OPENSSL.COFChange two keys and suffix named certificate = $dir/cacert.crt Private_key = $dir/private/ca.keyCD CA
Index.txtSerialEcho >serial(Umask 077;openssl genrsa-out private/ca.key 2048 (this file song permission is o77, the private key of the creation CA is 2048)OpenSSL req-new-x509-key private/ca.key-out cacert.crt-days 3,650 days (3,650 days to generate a certificate from your private key)CA Setup Complete
Generate Ngi
-Rise2Fall3 the - Backend Server_bbs $ Mode HTTP the option Redispatch the option Abortonclose the Balance Source the Cookie ServerID -Option Httpchk GET/check_status.php inServer BBS1192.168.88.81:8080Cookie BBS1 Weight8Check Inter -Rise2Fall3 theServer BBS2192.168.88.82:8090Cookie BBS2 Weight8Check Inter -Rise2Fall3 the About Backend Server_blog the Mode HTTP the option Redispatch the option Abortonclose + Balance Source - Cookie ServerID theOption Httpchk GET/check_status.phpBayiServer Blo
Installing PcreTAR-XVF pcre-8.32.tar.gzcd pcre-8.32./configuremake;make Install Nginx first create an Nginx user to run Nginxuseradd with Nginx user NGINXTAR-XVF nginx-1.2.7.tar.gzcd nginx-1.2.7./configure--user=nginx--group=nginx--prefix=/usr/local/nginx/-- With-http_stub_status_module--with-http_ssl_modulemake;make Install start Nginx prompt: Error while loading shared libraries: Libpcre.so.1:cannot open Shared object file:no such file or directory Workaround: 32-bit system [[email protected]
SharePoint applications, often need to configure a dual domain name, for different authentication methods to provide access to the portal, below a brief introduction, how to configure a dual domain name for SharePoint as a host header;Configure a host-based header for a dual domain1. Test sites that could have been accessed, such as2. Go to the Admin Center and c
Configure a virtual host based on domain name resolution1. Prepare the siteOur site unified into the/www/vhosts/, each site root directory name is the same as the domain name, specifically as follows.Create a new www.stu31.com site root directory[Email protected] extra]# mkdir/www/vhosts/www.stu31.comHomepage of new WWW site index.html[Email protected] extra]# echo "welconf to www.stu31.com" >/www/vhosts/ww
Web website Service:Apache the famous open source Web Service software, maintenance operations by the ASF Free Software FundOfficial site: http://httpd.apache.org/http://www.netcraft.com/ for various Web detailed statistics on the market share of the softwareLab Requirements:1, the establishment of HTTPD services, requirements:(1) Provide two name-based virtual host WWW1, WWW2; there are separate error logs
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.