to worker named ajp13JkMount/servlet/* ajp13# Send all files under MyProject for to worker named ajp13JKMount/MyProject ajp13
3. Create the workers. properties file in the/apache/conf directory.Worker. list = ajp13Worker. ajp13.port = 8009Worker. ajp13.host = localhostWorker. ajp13.type = ajp13Worker. ajp13.lbfactor = 1
4. Modify/conf/httpd. confChange Listen 80 to Listen your IP address: 80ServerName loca
Vi/etc/sysconfig/iptables-A input-m state–state new-m tcp-p tcp–dport 80-j ACCEPT (allow 80 ports through the firewall)-A input-m state–state new-m tcp-p tcp–dport 3306-j ACCEPT (Allow 3306 ports through the firewall)Special tips:Many netizens add these two rules to the last line of the firewall configuration, causing the firewall to fail to start, the correct one should be added to the default
When a bug is found that the WWW Service is provided on a port other than port 80, some superlinks generated by dottext do not automatically add port numbers.
For example:
URL: http: // host: Port/test/archive/2006/11/27/451 .ht
is, the world wide web transmission information Protocol. You can access the website by adding ": 80" to the HTTP address (commonly referred to as "URL"). because the default port number of the browser web service is 80, enter the URL, you do not need to enter ": 80.
worker named ajp13JkMount/servlet/* ajp13# Send all files under MyProject for to worker named ajp13JKMount/MyProject ajp133. Create the workers. properties file in the/apache/conf directory.Worker. list = ajp13Worker. ajp13.port = 8009Worker. ajp13.host = localhostWorker. ajp13.type = ajp13Worker. ajp13.lbfactor = 14. Modify/conf/httpd. confChange Listen 80 to Listen your IP address: 80ServerName localhost
80, IIS uses port 8081, and apache proxy forwards it to port 80.
IIS6, coexistence under multiple IP addresses, IIS is 192.168.0.1, apache is 192.168.0.2 original addressTo support/tools/Support. cab under CD 2003. Decompress the httpcfg.exe file and COPY it to the windows/
This article mainly introduces the nginx and Apache common 80 port configuration method, of course, if you want Nginx not with Apache Rob 80 port, this article also comes with the Nginx port modification method, the need for friends can refer to the next
A typical Nginx + A
How to use the default port 80 to log on to Tomcat's http: // localhost/index. jsp page
This method is relatively simple.1. Open the server. xml file in the conf folder under tomcat.2. FindMaxthreads = "150"Minsparethreads = "25"Maxsparethreads = "75"Enablelookups = "false"Redirectport = "8443"Acceptcount = "100"DEBUG = "0"Connectiontimeout = "20000"Disableupload
:
ServerAdmin hello@foxmail.comServerName www.hello.comServerAlias hello.comProxyRequests Off
Order deny,allow Allow from all
ProxyPass / http://localhost:2386/ max=20 ttl=120 retry=300ProxyPassReverse / http://localhost:2386/ErrorLog "/usr/local/apache/logs/proxy_error.log"
After the above site is added, all my requests are forwarded to the ghost site, that is, www.hello.c
How to use the default 80 port to log on to Tomcat's http://localhost/index.jsp pageIt is simpler to implement such access methods.1, open Tomcat under the Conf folder in the Server.xml file2, findMaxthreads= "150"Minsparethreads= "25"maxsparethreads= "75"Enablelookups= "false"Redirectport= "8443"acceptcount= "100"debug= "0"connectiontimeout= "20000"Disableupload
4k;Proxy_buffers 4 32k;Proxy_busy_buffers_size 64k;Proxy_temp_file_write_size 64k;
Nginx vhost Virtual Host agent configuration
Location ~* "\. (jsp|do) $ "{Proxy_pass http://kinggoo.ts;
# Use include to introduce it.Include proxy.conf;}
Instance:
If the Nginx listening port is not the default 80 port, change to a di
use Notepad to open the Ctrl+f search
Listen until you find listen 80, and then change 80 to the port you want to change, be careful not to change the port you have used on your computer OK, save after the change.
Then you browse the Apache server's Web page by adding http
the originalListen 80SwitchListen 127.0.0.1:80As with Nginx, specify the IP and port that Apache occupies.Save to exit and restart Apache to take effect.If you have more than one virtual host on Apache. No need to modify it as if it were nginx, as long as it is 80 ports.Such as:Namevirtualhost *:80ServerAdmin [email protected]Documentroot/var/www/adminServerName Admin. ABC.com (This is used to bind the bac
A typical Nginx + Apache application can be Nginx to occupy 80 ports, filter static requests, and then dynamically request Proxy to Apache's 8080 port. The advantage of proxy reverse proxy is that when you visit, it is always 80 p
A typical Nginx + Apache application can be Nginx to occupy 80 ports, filter static requests, and then dynamically request Proxy to Apache's 8080 port. The advantage of proxy reverse proxy is that when you visit, it is always 80 p
Development is based on Node. js WEB applications are very convenient, but the service port is very painful. Because Linux kernel requires that common users only use port numbers greater than 1024, so common users can run Node. the js service cannot listen to port 80. Note: Do not use the ROOT user to run Node. js serv
, the command uses IIS to only listen to the specified IP address and port
View binding: httpcfg qey ipisten
Delete binding: httpcfg deete ipisten-I 192.168.0.1
Command Line
Net stop Apache2
Net stop iisadmin/y
Net STAT Apache2
Net STAT w3svc
Ensure that the IP address in iis is set to the global default, and set isten 192.168.0.2: 80 in httpconf in Apache. Then, you can run the two services simultaneously
all,1. The connection is not the IP address and port of the target server, but the IP address and port of the proxy server.2. Submit an HTTP address instead of a relative address.3. Connection:Keep-aliveAndProxy-connection:Keep-aliveOfDifferences
Let's talk about the second method:In fact, this method is very powerful
coexist, and all need to use 80 port, but only one IP, what to make Apache proxy, that is, the Apache agent, and this method is not the same, please distinguish. The following is an example of setting two environments with two IPs, Known conditions: 218.87.96.160 binding www.jb51.net Domain name, is a PHP site, requires Apache environment, 218.87.96.161 bound ww
Nginx can be easily configured as a reverse proxy server:
server {
listen;
server_name localhost;
Location/{
Proxy_pass http://x.x.x.x:9500;
Proxy_set_header Host $host:
Proxy_set_header x-real-ip $remote _addr;
Proxy_set_header x-forwarded-for $proxy _add_x_forwarded_for;
Proxy_set_header Via "Nginx";
}
}
However, if the Nginx listening
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.