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 to introduce both doctor-c.net, doctor-c.com two domain
APACHE configures multiple domain names with the same IP address, so you should be familiar with web development. However, let's make a summary to avoid forgetting this in the future!The following describes how to perform the operation:1. install APACHE under windows2003 to configure the virtual directory, which is basically the same as that in UNIN. It is to mod
Multiple Domain Names are bound to apache on the CentOS server.
Apache is one of the most popular HTTP server software. It is famous for its fast, reliable (and stable) nature and can be expanded through simple APIs, the Perl/Python interpreter can be compiled to the server for free, and the source code is all open. If you have your own server or VPS and do not w
The local test environment is apache2.2.31,php5.3.27 and the operating system is rhel6.4x86_64, using the Mod_encoding tool to enable Apache to support Chinese attachment names such as http://www.example.com/ Contract. rar1. First modify the operating system locale, so that Linux local support Chinese, you can view the Chinese file nameModify the/etc/sysconfig/i18n fileWill lang= "en_US. UTF-8 "Sysfont= "La
1. Before http2.4.1: the first method is to directly access the httpd. conf file and append the configuration to the end of the file.
# Directly deny all illegal domain names
# Allowed domain names
Restart apache service: Service httpd restart 2. Jump to the specified directory or file to open the httpd. conf file and append the configuration to the end of
Let's summarize the configuration of apache's second-level domain name in windows.
Next we will use the local 127.0.0.1 for testing
Here we take www.jobs.com as an example. In the following code, jobs.com can be replaced with the domain name you want. This is just for testing.
Our goal is that different subdomain names can access websites under different directories.:
1. Enable the mod_rewrite function of apac
Use different domain names to differentiate different sites, all of which refer to the same IP address. Apache uses the host parameter included with the HTTP header to determine which Web site a user needs to visit.
For example, to set up the following two sites on a single server:
Http://www.test1.com
Http://www.test1.com
The following is an example of a CentOS 7.2 system that detai
]# VI httpd-vhosts.confServerAdmin[email protected]#管理服务器的邮箱 generally do not need to fill inDocumentroot/www/docs/dummy-host2.example.com #网站的目录ServerName dummy-host2.example.com #需要绑定的域名Serveralias www.example.com #绑定多个域名DirectoryIndex example.php #设置默认的访问的页面Errorlog Logs/dummy-host2.example.com-error_log #错误日志目录XAMPP does not have the ability to open the virtual directory by defaultNeed to modify/opt/lampp/etc/httpd.conf fileSearch for the following code# Include Etc/extra/httpd-vhosts.confGe
Apache integrates multiple Tomcat and one Tomcat corresponds to one application. Different domain names access different applications.
From: http://apps.hi.baidu.com/share/detail/20890923
To configure multiple Tomcat servers, you only need to change the 80, 8009, and ports to run n Tomcat servers on one server at the same time.
The following describes how to use one Ap
One server installed Apache, how to bind multiple domain names or websites?The simplest and most efficient method is as follows:1. First open the Apache configuration file httpd.conf, in this file,Find this sentence:#Include etc/extra/httpd-vhosts.conf(The path above will vary slightly depending on the installation path)Remove the previous #, that is, the use of
# configuration.## use name-based virtual hosting.#Namevirtualhost *:8080## VirtualHost Example:# Almost any Apache directive could go into a VirtualHost container.# The first VirtualHost section was used for all requests and that does not# match a ServerName or Serveralias in any ### ServerAdmin [Email protected]_blog.com# documentroot "D:\wamp\www\thinkphp_blog"# ServerName Www.thinkphp_blog.com# Serveralias Www.thinkphp_blog.com# errorlog "Logs/thi
Apache has been used for a long time, but it has only been used for a long time. So there is a taste of makeup in these four or five days: Since the company cannot provide a good system administrator, it can only be self-serving. After combining Apache and tomcat for SEO optimization, four or five days later, I had a unified understanding of the basic logic framework of these tools.The knowledge of URL rewr
Apache has been used for a long time, but it has only been used for a long time. So there is a taste of makeup in these four or five days: since the company cannot provide a good system administrator, it can only be self-serving. After combining Apache and tomcat for SEO optimization, four or five days later, I had a unified understanding of the basic logic framework of these tools.The knowledge of URL rewr
One server installed Apache, how to bind multiple domain names or websites?The simplest and most efficient method is as follows:1. First open the Apache configuration file httpd.conf, in this file,Find this sentence: "#Include etc/extra/httpd-vhosts.conf"(The path above will vary slightly depending on the installation path)Put the front of the melody, that is, th
Today I studied how to bind multiple domain names to a single host in Apache and use port 80. To put it bluntly, multiple websites are run on one host, and the website domain names are all port 80.
The specific method is as follows:
1. Go to the Apache conf directory and find httpd. conf. For example, my directory is c
-based: Use a different domain name for each virtual host, but the corresponding IP address is the same.2. Based on IP address: each virtual host uses a different domain name, and the corresponding IP address is not the same.3. Port-based: This approach does not use domain names, IP addresses to differentiate between different site content, but instead uses different TCP port numbers, so users are required to specify a port number to access when brows
One server installed Apache, how to bind multiple domain names and website content? The simplest way of course is to have different stations with different ports. However, you need to add a port number after the domain name to access it, not directly to the domain name. Another way is to use the host header to virtual host. Open the Apache configuration file http
Article Title: the simplest and fastest way to implement Apache second-level domain names. 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.
First, you have a top-level domain name with wildcard domain name resolution, such as: domain.com
Next, enable mod_rewrite in httpd.
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.