again, the browser will first pop up the authentication dialog box, only the correct user name and password can be entered to access the page3, domain-based virtual hostUse a httpd server to build two virtual web hosts www.benet.com and www.accp.com with an IP address of 192.168.30.15(1) Provide domain name resolution for virtual hostIn reality, you need to regi
.conf. Apache automatically reads the configuration information of this file at startup. Some other configuration files, such as httpd. conf, are included through the Include command. You can find these Include rows in apache2.conf:
# Include module configuration:Include/etc/apache2/mod-enabled/*. loadInclude/etc/apache2/mod-enabled/*. conf
# Include all the user invocations:Include/etc/apache2/httpd. co
1.tomcat Installation and operationDouble-click Bin/startup.bat in the Tomcat directory, enter http://localhost:8080 after startup, prompt for successful installation, indicating successful installation of TomcatDirectory Structure of 2.tomcat* Bin directory: The startup and termination scripts that hold Tomcat* Startup.bat Startup script* Bootstrap.jar, Startup script final Java program execution* Org.apache.catalina.startup.Bootstrap* Shutdown.bat Terminate Script* conf directory: Files that h
To configure the Apache virtual host, we need to do this in the following steps:
1, check the Apache virtual host module
2, open the Apache virtual host function
3, httpd-vhosts.conf documents detailed
4, according to the IP
Similar to the Apache virtual Host configuration under Windows platform, the only difference here is that the apache2 (installed through Apt-get) in Debian is in/etc/apache2
This article a space to teach you to implement multiple IP based on 127.0.0.* (Common network IP) to control the local virtual
;Fastcgi_read_timeout300;Fastcgi_buffer_size64k;Fastcgi_buffers464k;Fastcgi_busy_buffers_size128k;Fastcgi_temp_file_write_size128k;#gzip模块设置GzipOn#开启gzip压缩输出Gzip_min_length1k;#最小压缩文件大小Gzip_buffers416k;#压缩缓冲区Gzip_http_version1.0;#压缩版本 (default 1.1, front End If squid2.5 please use 1.0)Gzip_comp_level2;#压缩等级Gzip_types text/plain application/x-javascript text/css application/xml;#压缩类型, the default is already included textml, so there is no need to write, write up will not have a problem, but there
1, in the Apache configuration file to open the virtual host function: That is: include etc//extra/httpd-vhosts.conf to remove the previous #;2. Locate the file httpd-vhosts.conf in the extra directory and add the following configuration: 3, restart Apache;4, modify the host
1:windows the Hosts file to add the IP address and host name of the virtual host;2:linux Change the/etc/hosts file, add the Windows host IP address and host name;3: Turn off the Linux
1.The best way to network is to bridge. I used "Network address translation (NAT)", resulting in the virtual machine with the command ifconfig to get the IP is 10.0.2.15, a strange feeling, and then on the real machine has not been connected. Some say with the real machine on the network Sharing center of the virtual machine IP, I found the 192.168.56.1, can ping the pass, but even dead. Oh, I've had a big
.
Search for 8080 directly after opening the file, or browse to find the following sentence:
Quite simply, change the 8080 to 80 to save the file.
It is important to note that after the configuration file is modified, it is generally necessary to reboot the server before it takes effect.
OK, after restarting Tomcat, go to the browser to enter http://localhost to see what effect.
3, configure the virtual
. Each sub-process can generate multiple threads and each thread can process one request. Small memory usage, suitable for HTTP servers with traffic. Disadvantage: If a thread crashes, the whole process will die together with any other threads.
In Apache, the maximum number of prefork processes is in the prefork configuration.
Three Apache configurations
1 Global 1 Environment
2 main configuration
3
Apache Configuration Managementone, based on the port, that is, based on the different ports, the same IP virtual host virtual hosts with different ports based on the same IP 1) vi/etc/http/conf/httpd.conf2) Change the Listen field toListen 80Listen 8888(the above setting means using 80 and 8888 Ports) 3) Change the
To appear on this machine: Enter www.baidu.com, but enter your own directory1. Add in the Windows/system32/etc/host file127.0.0.1 www.baidu.com2. Add in the Tomcat/conf/server.xml file3. Launch Tomcat, browser input: http://www.baidu.com/jsp/will go to the default pageOf course, you need to add it in the directory Web. xmlIt is then possible to enter the default index.html,and the port number of the Server.xml is 80Virtual
Environment: Ubuntu Server 14.04 Apache2.41. Virtual Host ConfigurationIn apache2.4, the directory of the virtual host is /etc/apache2/sites-available configured through, by default, Apache has a default virtual host file called 0
Namevirtualhost 220.123.55.99---First specify which IP address is responsible for responding to requests to the virtual host with the Namevirtualhost directive
ServerName www.iigoogle.com:80
ServerAdmin [email protected]
Documentroot/www/docs/iigoogle
DirectoryIndex index.jsp
Errorlog Logs/www/iigoogle/error_log
Customlog Logs/www/iigoogle/access_log Common
A
default typical typical mode can be.
Sixth step: Set up the installation directory, default to C:\Program Files\apache Group. We can modify this path by clicking the "Change" button on the right.
Step Seventh: Click the Install button to start the installation.
Step Eighth: Copy the required files to the local hard drive and start the Apache main program.
nineth Step: Complete the Apache installation work, point "Finish" button to return to the desktop.
Tenth step: At the sa
Continue my Nginx learning journey today and talk about the configuration of the virtual host. What is a virtual host? Virtual host uses a special hardware and software technology, it i
networking between Windows and Linux virtual machines for SSH remote connectivity and VMware's 3 network modes [NAT, bridging, and Host-only]Tian QiOne, the network between Windows and Linux virtual machine for SSH remote connectionIf we were to configure an IP address for a
[Alias configuration method] for apache virtual host configurationCurrently, my apache virtual host settings are as follows:ServerAdmin webmaster @ localhostDocumentRoot/usr/local/www/html/domain.comServerName domain.comServerAlias domain.com www.domain.com1. I want to add t
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.