Port forwarding for the name of the site


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
7 views
Good afternoon.

This:
1. The Server Is Debian Lenny.
2. DNS bind9.
3. The apache2 web server that listens to port 80.
4. The server application, jetty, listening to 8888.

Task:
To do that would be when referring to a name ts.our was perenapravlenie port from 80 to 8888 as if the client came here on this link 192.168.0.2:8888, where 192.168.0.2 is the ip of the actual server.

Knowledgeable help than I can.
by | 7 views

3 Answers

0 like 0 dislike
First and foremost I Express my gratitude inkvizitor68sl and rednaxithat advised on nginx.
\r
And now the solution:
the first ts file.our (located in the directory /etc/nginx/sites-available and has a symbolic link in /etc/nginx/sites-enabled):
\r
\rupstream backend {\r # Address back-ends a\r server 192.168.0.2:8888;\r}\r \rserver {\r \r listen 80; ## listen for ipv4\r listen [::]:80 default ipv6only=on; ## listen for ipv6\r \r server_name www.ts.our ts.our;\r \r access_log /var/www/ts/logs/ts.access.log;\r error_log /var/www/ts/logs/ts.error.log;\r \r location / {\r access_log /var/www/ts/logs/ts_root;\r proxy_pass http://192.168.0.2:8888;\r include /etc/nginx/proxy.conf;\r }\r \r location /doc {\r access_log /var/www/ts/logs/ts_doc;\r rewrite ^/doc(/.*)?$ /javadoc$1;\r root /var/www/ts/core/docs/;\r index index.html;\r }\r \r location /javadoc {\r access_log /var/www/ts/logs/ts_jdoc;\r root /var/www/ts/core/docs/;\r index index.html;\r }\r \r # Staticheskie content gives himself with nginx\r # back-end to do not have\r location ^~ /cssimages/ {\r access_log /var/www/ts/logs/ts_css;\r root /var/www/ts/core/webapps/TrackStudio/;\r expires max;\r }\r \r location ^~ /icons/categories/ {\r access_log /var/www/ts/logs/ts_cat;\r root /var/www/ts/core/etc/plugins/;\r expires max;\r }\r \r location ^~ /style/ {\r access_log /var/www/ts/logs/ts_st;\r root /var/www/ts/core/webapps/TrackStudio/;\r }\r \r location ^~ /jquery/ {\r access_log /var/www/ts/logs/ts_jq;\r root /var/www/ts/core/webapps/TrackStudio/;\r }\r}\r \r# HTTPS server#\rserver {\r listen 443;\r server_name www.ts.our ts.our;\r \r location / {\r proxy_pass https://192.168.100.60:8433;\r include /etc/nginx/proxy.conf;\r }\r}\r

\r
the second is the proxy settings.conf (located in /etc/nginx):
\r
\r"proxy_redirect" off;\rproxy_set_header Host $Host;\rproxy_set_header X-Real-IP $remote_addr;\rproxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\rclient_max_body_size 10m;\rclient_body_buffer_size 128k;\rproxy_connect_timeout 90;\rproxy_send_timeout 90;\rproxy_read_timeout 90;\rproxy_buffer_size 4k;\rproxy_buffers 4 32k;\rproxy_busy_buffers_size 64k;\rproxy_temp_file_write_size 64k;\r

\r
productivity increased at times wasn't even like this when the ip turn on a straight line because all images and other statics were given servility.
\r
I hope someone come in handy.
\r
P. S. on jetty weighs TrackStudio
by
0 like 0 dislike
Thank you all!
Found the solution myself.
here if anyone need:
\r
\r
<VirtualHost *:80>
ServerName ts.our
\r
\r <Proxy *>
Order deny,allow
Allow from all
\r </Proxy>
\r
ProxyPass / http://192.168.0.2:8888/
ProxyPassReverse / http://192.168.0.2:8888/
ErrorLog /var/log/apache2/ts_error_log
CustomLog /var/log/apache2/ts_log common
\r</VirtualHost>

\r
by
0 like 0 dislike
Write in this thread as a similar question.
So the task such: On a VDS Server 2012 is a program TeamSpeak 3 Server (exchange voice messages). This server has many virtual servers sitting on ports (UDP 9987, 9988, 9999, 10025)
To server connect to 192.192.192.192 type:9987
To do so, you could connect to third-level domain
server.ts3.ru connect to 192.192.192.192:9987
server2.ts3.ru connect to 192.192.192.192:9988
server3.ts3.ru connect to 192.192.192.192:9999
server4.ts3.ru connect to 192.192.192.192:10025

How to implement it? Apache or DNS or on the server to install to have this working????
Thanks in advance to those who will not remain indifferent!
by

Related questions

0 like 0 dislike
6 answers
0 like 0 dislike
4 answers
0 like 0 dislike
4 answers
0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
27,943 users