Tag Archives: Web Server

Redirect page jsp

Example:
When you access to http://ad-repo.com/info
The system auto redirect to http://ad-repo.com/info/lp/
Create file index.jsp on folder info with content :

 

How to create file CSR in linux ?

What is a CSR (Certificate Signing Request)?

What is a CSR? A CSR or Certificate Signing request is a block of encrypted text that is generated on the server that the certificate will be used on. It contains information that will be included in your certificate such as your organization name, common name (domain name), locality, and country. It also contains the public key that will be included in your certificate. A private key is usually created at the same time that you create the CSR.

A certificate authority will use a CSR to create your SSL certificate, but it does not need your private key. You need to keep your private key secret. What is a CSR and private key good for if someone else can potentially read your communications? The certificate created with a particular CSR will only work with the private key that was generated with it. So if you lose the private key, the certificate will no longer work.

https://help.ubuntu.com/12.04/serverguide/certificates-and-security.html

http://www.sslshopper.com/what-is-a-csr-certificate-signing-request.html

  • Config tomcat read file csr (https) in /etc/tomcat7/server.xml.

 

redirect port 80 to 8080 on server.

– On site AWS , in Security Group after we redirect port 80 to 8080 we will block port 8080 on AWS.

Untitled
——

Example: http://192.168.1.234:8080/

After use command we just go to http://192.168.1.234

– With port 8434 (https).

 

How to setup VMware CentOS 6.5 become web server?

1. Choose VM > Install VMware Tools.

  • The guest operating system mounts the VMware Tools installation virtual CD.
  • Double-click the VMware Tools CD icon on the desktop.

2. Update centOS

3. Install apache httpd

4. Install java

5. Start apache service

6. Install mysql

7. Start mysqld service

8. Set password for mysql service

9. Install apache tomcat

Extract, rename to tomcat7 and copy to /opt.

10. Start tomcat server

Continue reading How to setup VMware CentOS 6.5 become web server?