Introduction
This document describes how to modify a local repository to use Nginx instead of Apache.
How to switch your local repository from Apache to Nginx?
- Create a backup of Apache so you can reuse in Nginx with:
- mkdir /usr/local/cliqr/bundle-backup
- cp -rf /var/www/html/* /usr/local/cliqr/bundle-backup
- Stop Apache service with the command apachectl stop.
- Confirm Apache has stopped with ps -ef | grep apache or ps -ef | grep httpd.
- Move items to /tmp folder with the command mv var/www/html /tmp.
- Delete Apache with the command yum erase httpd.
- Install Nginx with the commandyum install nginx.
- Move backup to the new installed Nginx with the command cp -rf /tmp/html/* /usr/share/nginx/html/.
- Restart Nginx serve with the command service nginx restart.
- Verify Nginx runs with the command ps -ef | grep nginx.
- Verify it's working with:
Ensure that you don’t have any proxy settings. If you continue to see proxy settings, you can issue these commands to unset them:
- unset http_proxy
- unset https_proxy