Apache Tomcat 8443 to 443 #27

Open
opened 3 years ago by rbsetiawan · 0 comments
Owner

Tomcat 8443 to 443 with httpd default buil-in Apache Tomcat 7.0.76

httpd default buil-in Apache Tomcat 7.0.76
  • lokasi default httpd from Apache Tomcat
/etc/httpd/

image

  • cek Modul yang terkonfigurasi di httpd
httpd -M
  • Load Module
nano /etc/httpd/conf.modules.d/00-proxy.conf
  • add module proxy
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
  • Verify modlue ready
apachectl configtest 
  • start https
systemctl start httpd.service
  • status https
systemctl status httpd.service
httpd default setup 80
  • lokasi default httpd from Apache Tomcat
/etc/httpd/
  • edit httpd.conf
nano /etc/httpd/conf/httpd.conf

#<VirtualHost *:80>

        #ProxyPreserveHost On
        #ProxyPass / http://127.0.0.1:80/
        #ProxyPassReverse / http://127.0.0.1:80/

#</VirtualHost>

httpd setup 443
  • install module ssl
yum install mod_ssl
  • restart httpd
systemctl restart httpd
  • add ssl to 443
nano /etc/httpd/conf.d/ssl.conf
  • get ssl from ftp
ftp 10.100.1.10

mget gisportal*
  • SSL location
/usr/share/tomcat/ssl

image

  • lokasi default httpd from Apache Tomcat
/etc/httpd/conf.d
  • edit ssl.conf
nano /etc/httpd/conf.d/ssl.conf

<VirtualHost *:443>
    DocumentRoot /var/www/html
    ServerName www.example.com
    SSLEngine on
    SSLCertificateFile /etc/ssl/private/certificate.crt
    SSLCertificateKeyFile /etc/ssl/private/private.key
	SSLCertificateChainFile /etc/ssl/private/certificate-ca.crt
</VirtualHost>

image

  • restart httpd
systemctl restart httpd

Tomcat 8443 to 443 with Apache2

Apache2

Refrensi

### Tomcat 8443 to 443 with httpd default buil-in Apache Tomcat 7.0.76 <details> <summary>httpd default buil-in Apache Tomcat 7.0.76</summary> - lokasi default httpd from Apache Tomcat ``` /etc/httpd/ ``` ![image](/attachments/f1005f74-ba49-4026-8be7-ccbb60a9b614) - cek Modul yang terkonfigurasi di httpd ``` httpd -M ``` - Load Module ``` nano /etc/httpd/conf.modules.d/00-proxy.conf ``` - add module proxy ``` LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so LoadModule proxy_balancer_module modules/mod_proxy_balancer.so ``` - Verify modlue ready ``` apachectl configtest ``` - start https ``` systemctl start httpd.service ``` - status https ``` systemctl status httpd.service ``` </details> <details> <summary>httpd default setup 80</summary> - lokasi default httpd from Apache Tomcat ``` /etc/httpd/ ``` - edit httpd.conf ``` nano /etc/httpd/conf/httpd.conf ``` ``` #<VirtualHost *:80> #ProxyPreserveHost On #ProxyPass / http://127.0.0.1:80/ #ProxyPassReverse / http://127.0.0.1:80/ #</VirtualHost> ``` </details> <details> <summary>httpd setup 443</summary> - install module ssl ``` yum install mod_ssl ``` - restart httpd ``` systemctl restart httpd ``` - add ssl to 443 ``` nano /etc/httpd/conf.d/ssl.conf ``` - get ssl from ftp ``` ftp 10.100.1.10 mget gisportal* ``` - SSL location ``` /usr/share/tomcat/ssl ``` ![image](/attachments/bebdf8d7-2ac7-4c0b-a652-897b4c0179a7) - lokasi default httpd from Apache Tomcat ``` /etc/httpd/conf.d ``` - edit ssl.conf ``` nano /etc/httpd/conf.d/ssl.conf ``` ``` <VirtualHost *:443> DocumentRoot /var/www/html ServerName www.example.com SSLEngine on SSLCertificateFile /etc/ssl/private/certificate.crt SSLCertificateKeyFile /etc/ssl/private/private.key SSLCertificateChainFile /etc/ssl/private/certificate-ca.crt </VirtualHost> ``` ![image](/attachments/7994aba8-24ae-407a-a60b-5f80e526f69b) - restart httpd ``` systemctl restart httpd ``` </details> ### Tomcat 8443 to 443 with Apache2 <details> <summary>Apache2</summary> </details> # Refrensi - [www.tecmint.com](https://www.tecmint.com/install-apache-on-centos-7/) : How to Install Apache on CentOS 7 - [webhostinggeeks.com](https://webhostinggeeks.com/howto/apache-reverse-proxy-configuration-for-linux/) : Apache Reverse Proxy Configuration for Linux - [linuxtechlab.com](https://linuxtechlab.com/apache-as-reverse-proxy-centos-rhel/) : Apache Reverse Proxy configuration: Step by Step - [docs.appeon.com](https://docs.appeon.com/ps2022r2/Configuring_Apache_reverse_proxy_server_Linux.html) : Configuring Apache reverse proxy server (Linux) - [serverfault](https://serverfault.com/questions/303744/serve-http-port-80-and-https-port-443-on-same-virtualhost): Serve http (port 80) and https (port 443) on same VirtualHost - [velocihost](https://my.velocihost.net/knowledgebase/45/How-to-Install-the-Apache-mod_ssl-module-on-CentOS.html): How to Install the Apache mod_ssl module on CentOS - [medium](https://hbayraktar.medium.com/how-to-install-ssl-certificate-on-apache-for-centos-7-38c25b84d8b1): How To install SSL Certificate on Apache for CentOS 7
rbsetiawan added the
Linux
label 3 years ago
rbsetiawan self-assigned this 3 years ago
rbsetiawan changed title from Apache to Apache Tomcat 3 years ago
rbsetiawan changed title from Apache Tomcat to Apache Tomcat 8443 to 443 3 years ago
rbsetiawan added the
solved
label 3 years ago
rbsetiawan removed the
solved
label 3 years ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.