Advertisement
Guest User

Untitled

a guest
Aug 14th, 2017
460
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.47 KB | None | 0 0
  1. $ sudo apache2ctl -S
  2. VirtualHost configuration:
  3. *:80 zethanath.tk (/etc/apache2/sites-enabled/000-default.conf:1)
  4. *:443 is a NameVirtualHost default server zethanath.tk (/etc/apache2/sites-enabled/000-default-le-ssl.conf:2)
  5. port 443 namevhost zethanath.tk (/etc/apache2/sites-enabled/000-default-le-ssl.conf:2)
  6. alias www.zethanath.tk
  7. alias servlet.zethanath.tk
  8. port 443 namevhost zethanath.tk (/etc/apache2/sites-enabled/default-ssl.conf:2)
  9. port 443 namevhost www.zethanath.tk (/etc/apache2/sites-enabled/default-ssl.conf:140)
  10.  
  11. ServerRoot: "/etc/apache2"
  12. Main DocumentRoot: "/var/www/html"
  13. Main ErrorLog: "/var/log/apache2/error.log"
  14. Mutex rewrite-map: using_defaults
  15. Mutex ssl-stapling-refresh: using_defaults
  16. Mutex ssl-stapling: using_defaults
  17. Mutex proxy: using_defaults
  18. Mutex ssl-cache: using_defaults
  19. Mutex default: dir="/var/lock/apache2" mechanism=fcntl
  20. Mutex watchdog-callback: using_defaults
  21. Mutex proxy-balancer-shm: using_defaults
  22. PidFile: "/var/run/apache2/apache2.pid"
  23. Define: DUMP_VHOSTS
  24. Define: DUMP_RUN_CFG
  25. User: name="www-data" id=33
  26. Group: name="www-data" id=33
  27.  
  28. <IfModule mod_ssl.c>
  29. <VirtualHost _default_:443>
  30. ServerAdmin erick9.hi5@gmail.com
  31. ServerName zethanath.tk
  32.  
  33. ProxyPreserveHost On
  34. ProxyPass / http://192.168.1.70:8080/index//
  35. ProxyPassReverse / http://192.168.1.70:8080/index//
  36.  
  37. JKMount /* ajp13_worker
  38.  
  39. ErrorLog ${APACHE_LOG_DIR}/error.log
  40. CustomLog ${APACHE_LOG_DIR}/access.log combined
  41.  
  42. SSL Engine Switch:
  43. # Enable/Disable SSL for this virtual host.
  44. SSLEngine on
  45.  
  46. # A self-signed (snakeoil) certificate can be created by installing
  47. # the ssl-cert package. See
  48. # /usr/share/doc/apache2/README.Debian.gz for more info.
  49. # If both key and certificate are stored in the same file, only the
  50. # SSLCertificateFile directive is needed.
  51. SSLCertificateFile /etc/letsencrypt/live/zethanath.tk/fullchain.pem
  52. SSLCertificateKeyFile /etc/letsencrypt/live/zethanath.tk/privkey.pem
  53. Include /etc/letsencrypt/options-ssl-apache.conf
  54.  
  55. <FilesMatch ".(cgi|shtml|phtml|php)$">
  56. SSLOptions +StdEnvVars
  57. </FilesMatch>
  58. <Directory /usr/lib/cgi-bin>
  59. SSLOptions +StdEnvVars
  60. </Directory>
  61.  
  62. </VirtualHost>
  63.  
  64. <VirtualHost _default_:443>
  65. ServerAdmin erick9.hi5@gmail.com
  66. ServerName www.zethanath.tk
  67.  
  68. ProxyPreserveHost On
  69. ProxyPass / http://192.168.1.70:8080/index//
  70. ProxyPassReverse / http://192.168.1.70:8080/index//
  71.  
  72. JKMount /* ajp13_worker
  73.  
  74. ErrorLog ${APACHE_LOG_DIR}/error.log
  75. CustomLog ${APACHE_LOG_DIR}/access.log combined
  76.  
  77. SSLEngine on
  78.  
  79. # A self-signed (snakeoil) certificate can be created by installing
  80. # the ssl-cert package. See
  81. # /usr/share/doc/apache2/README.Debian.gz for more info.
  82. # If both key and certificate are stored in the same file, only the
  83. # SSLCertificateFile directive is needed.
  84. SSLCertificateFile /etc/letsencrypt/live/zethanath.tk/fullchain.pem
  85. SSLCertificateKeyFile /etc/letsencrypt/live/zethanath.tk/privkey.pem
  86. Include /etc/letsencrypt/options-ssl-apache.conf
  87.  
  88. <FilesMatch ".(cgi|shtml|phtml|php)$">
  89. SSLOptions +StdEnvVars
  90. </FilesMatch>
  91. <Directory /usr/lib/cgi-bin>
  92. SSLOptions +StdEnvVars
  93. </Directory>
  94.  
  95. </VirtualHost>
  96. </IfModule>
  97.  
  98. # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
  99.  
  100. <IfModule mod_ssl.c>
  101. <VirtualHost *:443>
  102.  
  103. ServerName zethanath.tk
  104. ServerAlias www.zethanath.tk servlet.zethanath.tk
  105.  
  106. ProxyPreserveHost On
  107. ProxyPass / http://192.168.1.70:8080/index//
  108. ProxyPassReverse / http://192.168.1.70:8080/index//
  109.  
  110. JKMount /* ajp13_worker
  111.  
  112. ErrorLog ${APACHE_LOG_DIR}/error.log
  113. CustomLog ${APACHE_LOG_DIR}/access.log combined
  114.  
  115. SSLCertificateFile /etc/letsencrypt/live/zethanath.tk/fullchain.pem
  116. SSLCertificateKeyFile /etc/letsencrypt/live/zethanath.tk/privkey.pem
  117. Include /etc/letsencrypt/options-ssl-apache.conf
  118.  
  119. </VirtualHost>
  120. </IfModule>
  121.  
  122. <VirtualHost *:80 >
  123. ServerName zethanath.tk
  124. ServerAlias www.zethanath.tk servlet.zethanath.tk
  125.  
  126. ErrorLog ${APACHE_LOG_DIR}/error.log
  127. CustomLog ${APACHE_LOG_DIR}/access.log combined
  128. #JKMount /* ajp13_worker
  129.  
  130. # For most configuration files from conf-available/, which are
  131. # enabled or disabled at a global level, it is possible to
  132. # include a line for only one particular virtual host. For example the
  133. # following line enables the CGI configuration for this host only
  134. # after it has been globally disabled with "a2disconf".
  135. #Include conf-available/serve-cgi-bin.conf
  136.  
  137. RewriteEngine on
  138. RewriteCond %{SERVER_NAME} =zethanath.tk
  139. RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI}
  140. [END,NE,R=permanent]
  141. </VirtualHost>
  142.  
  143. # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
  144.  
  145. 127.0.0.1 localhost
  146. 127.0.1.1 erick-ASRock-N68C-GS4-FX
  147. 192.168.1.70 zethanath.tk
  148.  
  149. # The following lines are desirable for IPv6 capable hosts
  150. ::1 ip6-localhost ip6-loopback
  151. fe00::0 ip6-localnet
  152. ff00::0 ip6-mcastprefix
  153. ff02::1 ip6-allnodes
  154. ff02::2 ip6-allrouters
  155.  
  156. http://192.168.1.70:8080/index/
  157.  
  158. http://servlet.zethanath.tk
  159. Unable to Connect
  160.  
  161. Your Apache server is running on www.example.com
  162. Your Tomcat server is running on servlet.example.com:8080
  163. Your GWT module has a `<rename-to="myapp">`
  164. You have one RPC servlet, mapped into /myapp/myService
  165.  
  166. ProxyPass /MyApp/myapp/myService (http)://servlet.example.com:8080/MyApp/myapp/myService
  167. ProxyPassReverse /MyApp/myapp/myService (http)://servlet.example.com:8080/MyApp/myapp/myService
  168.  
  169. <IfModule mod_ssl.c>
  170. <VirtualHost *:443>
  171. ServerName zethanath.tk
  172. ServerAlias zethanath.tk
  173.  
  174. ProxyPreserveHost On
  175. ProxyPass / (http)://192.168.1.70:8080/Index//
  176. ProxyPassReverse / (http)://192.168.1.70:8080/Index//
  177.  
  178. #DocumentRoot /var/www/html
  179.  
  180. JKMount /* ajp13_worker
  181.  
  182. ErrorLog ${APACHE_LOG_DIR}/error.log
  183. CustomLog ${APACHE_LOG_DIR}/access.log combined
  184.  
  185. SSLCertificateFile /etc/letsencrypt/live/zethanath.tk/fullchain.pem
  186. SSLCertificateKeyFile /etc/letsencrypt/live/zethanath.tk/privkey.pem
  187. Include /etc/letsencrypt/options-ssl-apache.conf
  188. </VirtualHost>
  189. <VirtualHost *:443>
  190. ServerName (www).zethanath.tk
  191. ServerAlias zethanath.tk
  192.  
  193. ProxyPreserveHost On
  194. ProxyPass / (http)://192.168.1.70:8080/Index//
  195. ProxyPassReverse / (http)://192.168.1.70:8080/Index//
  196.  
  197. #DocumentRoot /var/www/html
  198.  
  199. JKMount /* ajp13_worker
  200.  
  201. ErrorLog ${APACHE_LOG_DIR}/error.log
  202. CustomLog ${APACHE_LOG_DIR}/access.log combined
  203.  
  204. SSLCertificateFile /etc/letsencrypt/live/zethanath.tk/fullchain.pem
  205. SSLCertificateKeyFile /etc/letsencrypt/live/zethanath.tk/privkey.pem
  206. Include /etc/letsencrypt/options-ssl-apache.conf
  207. </VirtualHost>
  208. <VirtualHost *:443>
  209. ServerName servlet.zethanath.tk
  210. ServerAlias zethanath.tk
  211.  
  212. ProxyPreserveHost On
  213. ProxyPass / (http)://192.168.1.70:8080/Index//
  214. ProxyPassReverse / (http)://192.168.1.70:8080/Index//
  215.  
  216. #DocumentRoot /var/www/html
  217.  
  218. JKMount /* ajp13_worker
  219.  
  220. ErrorLog ${APACHE_LOG_DIR}/error.log
  221. CustomLog ${APACHE_LOG_DIR}/access.log combined
  222.  
  223. SSLCertificateFile /etc/letsencrypt/live/zethanath.tk/fullchain.pem
  224. SSLCertificateKeyFile /etc/letsencrypt/live/zethanath.tk/privkey.pem
  225. Include /etc/letsencrypt/options-ssl-apache.conf
  226. </VirtualHost>
  227. </IfModule>
  228.  
  229. <IfModule mod_ssl.c>
  230. <VirtualHost _default_:443>
  231. ServerAdmin erick9.hi5@gmail.com
  232. ServerName zethanath.tk
  233. ServerAlias zethanath.tk
  234.  
  235. ProxyPreserveHost On
  236. ProxyPass / (http)://192.168.1.70:8080/Index//
  237. ProxyPassReverse / (http)://192.168.1.70:8080/Index//
  238.  
  239. #DocumentRoot /var/www/html
  240. JKMount /* ajp13_worker
  241.  
  242. ErrorLog ${APACHE_LOG_DIR}/error.log
  243. CustomLog ${APACHE_LOG_DIR}/access.log combined
  244.  
  245. SSLEngine on
  246.  
  247. SSLCertificateFile /etc/letsencrypt/live/zethanath.tk/fullchain.pem
  248. SSLCertificateKeyFile /etc/letsencrypt/live/zethanath.tk/privkey.pem
  249. Include /etc/letsencrypt/options-ssl-apache.conf
  250.  
  251. <FilesMatch ".(cgi|shtml|phtml|php)$">
  252. SSLOptions +StdEnvVars
  253. </FilesMatch>
  254. <Directory /usr/lib/cgi-bin>
  255. SSLOptions +StdEnvVars
  256. </Directory>
  257. </VirtualHost>
  258.  
  259. <VirtualHost _default_:443>
  260. ServerAdmin erick9.hi5@gmail.com
  261. ServerName (www).zethanath.tk
  262. ServerAlias zethanath.tk
  263.  
  264. ProxyPreserveHost On
  265. ProxyPass / (http)://192.168.1.70:8080/Index//
  266. ProxyPassReverse / (http)://192.168.1.70:8080/Index//
  267.  
  268. #DocumentRoot /var/www/html
  269. JKMount /* ajp13_worker
  270.  
  271. ErrorLog ${APACHE_LOG_DIR}/error.log
  272. CustomLog ${APACHE_LOG_DIR}/access.log combined
  273.  
  274. SSLEngine on
  275.  
  276. SSLCertificateFile /etc/letsencrypt/live/zethanath.tk/fullchain.pem
  277. SSLCertificateKeyFile /etc/letsencrypt/live/zethanath.tk/privkey.pem
  278. Include /etc/letsencrypt/options-ssl-apache.conf
  279.  
  280. <FilesMatch ".(cgi|shtml|phtml|php)$">
  281. SSLOptions +StdEnvVars
  282. </FilesMatch>
  283. <Directory /usr/lib/cgi-bin>
  284. SSLOptions +StdEnvVars
  285. </Directory>
  286. </VirtualHost>
  287. <VirtualHost _default_:443>
  288. ServerAdmin erick9.hi5@gmail.com
  289. ServerName servlet.zethanath.tk
  290. ServerAlias zethanath.tk
  291.  
  292. ProxyPreserveHost On
  293. ProxyPass / (http)://192.168.1.70:8080/Index//
  294. ProxyPassReverse / (http)://192.168.1.70:8080/Index//
  295.  
  296. #DocumentRoot /var/www/html
  297. JKMount /* ajp13_worker
  298.  
  299. ErrorLog ${APACHE_LOG_DIR}/error.log
  300. CustomLog ${APACHE_LOG_DIR}/access.log combined
  301.  
  302. SSLEngine on
  303.  
  304. SSLCertificateFile /etc/letsencrypt/live/zethanath.tk/fullchain.pem
  305. SSLCertificateKeyFile /etc/letsencrypt/live/zethanath.tk/privkey.pem
  306. Include /etc/letsencrypt/options-ssl-apache.conf
  307.  
  308. <FilesMatch ".(cgi|shtml|phtml|php)$">
  309. SSLOptions +StdEnvVars
  310. </FilesMatch>
  311. <Directory /usr/lib/cgi-bin>
  312. SSLOptions +StdEnvVars
  313. </Directory>
  314. </VirtualHost>
  315. </IfModule>
  316.  
  317. # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
  318.  
  319. <VirtualHost *:80 >
  320. ServerName zethanath.tk
  321. ServerAlias zethanath.tk
  322.  
  323. ProxyPreserveHost On
  324. ProxyPass / (http)://192.168.1.70:8080/Index//
  325. ProxyPassReverse / (http)://192.168.1.70:8080/Index//
  326.  
  327. #ServerAdmin erick9.hi5@gmail.com
  328. #DocumentRoot /var/www/html
  329.  
  330. ErrorLog ${APACHE_LOG_DIR}/error.log
  331. CustomLog ${APACHE_LOG_DIR}/access.log combined
  332. #JKMount /* ajp13_worker
  333.  
  334. RewriteEngine on
  335. RewriteCond %{SERVER_NAME} =zethanath.tk
  336. RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
  337.  
  338. </VirtualHost>
  339.  
  340. <VirtualHost *:80 >
  341. ServerName (www).zethanath.tk
  342. ServerAlias zethanath.tk
  343.  
  344. ProxyPreserveHost On
  345. ProxyPass / (http)://192.168.1.70:8080/Index//
  346. ProxyPassReverse / (http)://192.168.1.70:8080/Index//
  347.  
  348. #ServerAdmin erick9.hi5@gmail.com
  349. #DocumentRoot /var/www/html
  350.  
  351. ErrorLog ${APACHE_LOG_DIR}/error.log
  352. CustomLog ${APACHE_LOG_DIR}/access.log combined
  353. #JKMount /* ajp13_worker
  354.  
  355. RewriteEngine on
  356. RewriteCond %{SERVER_NAME} =(www).zethanath.tk
  357. RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
  358.  
  359. </VirtualHost>
  360.  
  361. <VirtualHost *:80 >
  362. ServerName servlet.zethanath.tk
  363. ServerAlias zethanath.tk
  364.  
  365. ProxyPreserveHost On
  366. ProxyPass / (http)://192.168.1.70:8080/Index//
  367. ProxyPassReverse / (http)://192.168.1.70:8080/Index//
  368.  
  369. #ServerAdmin erick9.hi5@gmail.com
  370. #DocumentRoot /var/www/html
  371.  
  372. ErrorLog ${APACHE_LOG_DIR}/error.log
  373. CustomLog ${APACHE_LOG_DIR}/access.log combined
  374. #JKMount /* ajp13_worker
  375.  
  376. RewriteEngine on
  377. RewriteCond %{SERVER_NAME} =zethanath.tk
  378. RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
  379.  
  380. </VirtualHost>
  381.  
  382. # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement