If there are two domain names, respectively, sos.45it.com and down.45it.com, you need to bind these two domain names to IP is 219.13 .34.32 on the server
1. First, specify the domain name and IP correspondence on the domain name vendor management page.
2.WEB server configuration LAMP environment
3. Put the corresponding source code in the /usr/local/apache/htdocs directory, respectively named upload and upload2
4. Configure apache #vi httpd.conf Change to ServerName 219.13.34.32:80 and then in the file Add the following:
NameVirtualHost 219.13.34.32
<VirtualHost 219.13.34.32> ServerAdmin [email protected] DocumentRoot /usr/local/apache/htdocs ServerName 219.13.34.32 < /VirtualHost> # <VirtualHost 219.13.34.32> ServerAdmin [email protected] DocumentRoot /usr/local/apache/htdocs/upload ServerName sos.45it.com </VirtualHost> # <VirtualHost 219.13.34.32> ServerAdmin [email protected] DocumentRoot /usr/local/apache/htdocs/upload2 ServerName Down.45it.com </VirtualHost>
Among them: NameVirtualHost 219.13.34.32 is very important, without this, the virtual host can not be established successfully. Here, two virtual hosts with domain names sos.45it.com and down.45it.com are created. The /usr/local/apache/htdocs directory is the page directory that is used to enter the IP directly. The other two are the directories that are accessed when the domain name is entered. Restart the apache service and enter http://sos.45it.com and http://down.45it.com in the browser to access the different websites.
Recently, some netizens reported that when Windows XP comes with the “Remote Desk
Recently, the interface UI of the website was revised. In addition to a few pages, the whole station
Now playing online games like to use voice communication, everyone is logged into a voice chat room,
to share files between two people, you can set the shared directory according to the Network Neighbo
Linux Mail Server Configuration Guide
Why does the Linux server log in and displays the "-bash-3.2#"
Linux with Apache one IP multiple sites multiple domain configuration method
Open the file sharing manager with 2003, 03
Key terms and technical explanations in virtualization technology
Automatically restart the Web service according to the system load value. The
Install IIS prompts the installer can't copy the file staxmem.dll solution
After installing SVN, Apache can't start mod
Telnet to port 25 to test SMTP communication
Using WPS mail merge function to realize data batch insertion into document
Completely forbid Windows with its own firewall
User-organized Vista firewall usage tips
Creating a Picture Playlist with WMP
How to start QQ pets in Win7 system
Windows7 sound card driver is not complete how to do
Teach you how to easily uninstall Win7 SP1 system in four steps
Win7 sound settings, work and entertainment without interruption
Why can't Windows IE reinstall IE?
Windows 7 IIS7.5 installation method and illustration tutorial