NETWORKSTIP Networking CCNA,Centos,Ubuntu,Sql,

Made By Muhammad Nafees

Breaking

Showing posts with label Apache. Show all posts
Showing posts with label Apache. Show all posts

Tuesday, 5 October 2021

October 05, 2021

Install SSL on Node application with certbot

INSTALL SSL on Node JS Application

1st chek on which port you are running your node js you can chek by typing Useful Command for Node

• pm2 log (shows log)

• pm2 list (show all running app)

• pm2 stop all (stop all application)

• pm2 flush (flush all from cache)

• pm2 kill (kill all process)

• pm2 strat 0 or 1 (for starting project pm)

• pm2 update (update aap some time need for app running)

• pm2 stop 0 (aap name)

• pm2 restart 0 (aap name )



Or you can edit and see port in index file 















After that check your Nginx service running properly 
• systemctl status nginx







Create nginx config
• sudo touch /etc/nginx/conf.d/yoursite.com.conf
• sudo nano /etc/nginx/conf.d/yoursite.com.conf
• sudo systemctl start nginx
• sudo systemctl enable nginx

Sometimes do not need to install the Nginx service it's a built-in node application there for just create the above file in the path if you install Nginx it will conflict port.

NOW  paste the code in yoursite.com.conf file and change as per your requirement

server { 
server_name yoursite.com;
 location / { 
proxy_pass http://localhost:8080; 
proxy_http_version 1.1; 
proxy_set_header Upgrade $http_upgrade; 
proxy_set_header Connection 'upgrade'; 
proxy_set_header Host $host; 
proxy_cache_bypass $http_upgrade;
 } 
}

For installation certificate must  node application 1st

Install Certbot
• yum –y install epel-release
• yum –y install yum-utils
• yum –y install certbot-nginx if you have apace install certbot-apache
• sudo yum install python3-certbot-nginx
• sudo certbot --nginx


• now select a type to complete your registration






Tuesday, 31 October 2017

October 31, 2017

how to install centos web panel in centos

how to install centos web panel in centos

About CentOS Web Panel

There are so many free and paid Control panels available nowadays. We will, today, discuss about CentOS Web panel(CMP), specially designed for RPM based distributions like CentOS, RHEL, Scientific Linux etc. CWP is a free, Open Source control panel that can be widely used for deploying a Web hosting environment easily. Unlike other Control panels, CWP is automatically deploy the LAMP stack with Varnish Cache server.

Monday, 17 October 2016

October 17, 2016

Enabling Apache service on boot in CentOS 7

Enabling Apache service on boot in CentOS 7

Check if the service starts on boot

$ systemctl status httpd
httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
...
The last word, either enabled or disabled, will tell you if the service starts on boot. In the case above, the Apache2 webserver "httpd", it's Enabled.

Monday, 22 August 2016

August 22, 2016

Configure Apache Virtual Hosts - CentOS 7

Configure Apache Virtual Hosts - CentOS 7

Want to host websites on your server? Using Apache? Great. This article will show you how to do exactly that using Apache’s “virtual hosts.”
In Apache, you can use virtual hosts to direct http traffic for a given domain name to a particular directory (i.e. the root directory of the website for the domain in the request). This feature is commonly used to host multiple websites, but we recommend using it for every website on your server including the first.
Throughout this article, we'll use an example domain - nafees.le - but you should replace it with the domain name or subdomain you want to host on your server.

Thursday, 14 July 2016

July 14, 2016

Install A LAMP (Apache, MySQL, PHP) Stack On CentOS

Installing Apache on CentOS

Install Apache with the following command to begin the install:
  • sudo yum install httpd
Start Apache with the following command:
  • sudo service httpd start
We can now verify Apache is working by opening your browser and entering the URL http://your-server's-address. you should get a blue Apache 2 test page similar to the image below.
Note: If you do not know your IP address, run the following command:
  • ip addr show eth0