I setup files for port 8080
and for cgi-bin and upload will used to port 80
this is my tutorial, please review and comments :
I know I m not smart but if we could share together we could be smart together. Admin please support this thread... Thank you
* Nginx not available inside official Centos repo, so we should used another repo first
Code: Select all
cd /etc/yum.repos.d/
wget http://centos.karan.org/kbsingh-CentOS-Extras.repo
Code: Select all
nano /etc/yum.repos.d/kbsingh-CentOS-Extras.repo
Code: Select all
# pkgs in the -Testing repo are not gpg signed
[kbs-CentOS-Testing]
name=CentOS.Karan.Org-EL$releasever - Testing
gpgcheck=0
gpgkey=http://centos.karan.org/RPM-GPG-KEY-karan.org.txt
enabled=1
baseurl=http://centos.karan.org/el$releasever/extras/testing/$basearch/RPMS/
Code: Select all
yum install nginx
Code: Select all
chkconfig --levels 235 nginx on
*Configure port 8080
Code: Select all
nano /etc/nginx/nginx.conf
Code: Select all
#
# The default server
#
server {
listen 8080;
server_name _;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root /var/www/files;
index index.html index.htm;
}
Code: Select all
/etc/init.d/nginx start
Install Apache and Webmin
* used yum for install httpd and Apache automatic with port 80
Code: Select all
yum install httpd
* install webmin, setting first repo, and then you could install
Code: Select all
deb http://download.webmin.com/download/repository sarge contrib
cd /root
wget http://www.webmin.com/jcameron-key.asc
apt-key add jcameron-key.asc
apt-get update
apt-get install webmin
* setting /var/www/cgi-bin could running file perl with edited
Code: Select all
nano /etc/httpd/conf/httpd.conf
Code: Select all
<Directory "/var/www/cgi-bin">
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
Code: Select all
/etc/init.d/httpd start
/etc/init.d/webmin start
My question is How we enable nginx port from main front administrator site to be integrated with this vps with configure nginx + apache webmin