Nginx with kloxo [vhost conf] ?

Status
Not open for further replies.

chiwan

Member
19
2011
0
0
Hi,

i have installed nginx on centOS.

What changes must i do to run sites on nginx with kloxo panel?

/etc/nginx/nginx.conf or
/etc/nginx/nginx.conf.default
/etc/nginx/conf.d/virtual.conf or where ?

and what is the path of website files ?
/home/domain.com/
or
/home/httpd/domain.com/httpdocs/
or
where is location on kloxo

help me i'm :facepalm: of nginx ..where in any line and in any file i should make changes??
 
26 comments
Why not try Cherokee ? It has a GUI admin area with which You can easily add/edit vHosts.
+ It can be easily made to work with php with the GUI admin area.

/home/admin/*WEBSITE NAME* is the location of the HTTP docs (website files)
 
i need nginx on my server not cherokee.
any this location /home/admin/*WEBSITE NAME* incorrect
any way thanks for you reply.
 
but my problem not with location (or path htpdocs) with configuration nginx with kloxo panel on centOS...
just i need to know which changes i should to do with conf nginx to run all websites and in any files (nginx.conf, nginx.conf.default, virtual.conf, .... etc) exactly and in any line ?

i hope u understand me, and sorry for my bad english
 
Hello,

none can help you , you need to provide more info about how you want to use nginx. and how many sites do you have on that kloxo.

please tell us whether you want to use nginx as reverse proxy for static files and pass php scripts to apache.

or do you want to use standalone nginx with php-fpm/spawnfcgi .

if you want the second option I will prefer to use kloxo built-in lighttpd webserver.

because nginx and kloxo will need a lot of manual work and can lead to a lot of headaches :P

Highest Regards
Mohammed H
 
i have 3-4 websites on kloxo no more, need nginx as webserver ..

if i use it as reverse proxy? will protected from Ddos attack ?
which different between reverse proxy and second option?:(

thanks for your reply
 
Hello,

reverse proxy is to serve static files only (images,css,js,html, etc...) and forwarding dynamic requests (php,perl,etc..) to another server like apache.

when second option will serve both static and dynamic files anyway nginx still will need a 3rd-party software to parse php scripts like php-fpm/spawnfcgi.

and whoever told you that nginx will stop ddos (I mean real ddos) he is either a fag or noob.

but still nginx is very lightweight server. if you have low specs VPS then its the way to go.

as for your main request about setting nginx on your kloxo I can do that for you but I can't write a tutorial asI don't have time for that tbh. (there is a lot of articles on google already)

all you need is to stop kloxo apache and then install nginx by following any online tutorial.

Highest Regards
Mohammed H
 
use LNMP (Linux, Nginx,MySql,Php)
I'm not sure kloxo already have nginx for for web server
for the last time I try to install kloxo its really pain in the ass with their app installer
 
XSLTel thank's for explanation :)
i will go with reverse proxy (easy way).
nginx installed on my server already.. and showing nginx default page.

how i can run all domains ? what i should to do in next step ?

thank you again for your time
 
XSLTel thank's for explanation :)
i will go with reverse proxy (easy way).
nginx installed on my server already.. and showing nginx default page.

how i can run all domains ? what i should to do in next step ?

thank you again for your time
add virtual host for sure
make sure the virtual host conf included on nginx.conf
 
@chiwan
i can install all for you
leave kloxo its makes high oiwait

Nginx 1.0.2 (Current Stable Version)
PHP 5.3.6 with PHP-FPM (Latest 5.3.x , faster for processing php script)
MySQL 5.5.12
phpMyAdmin 3.4.0
ionCube PHP Loader 4.0.7
eAccelerator 0.9.6.1/XCache 1.3.1
Suhosin Extension 0.9.32.1
Imagick 3.0.1
FFMPEG 0.6.0
PureFTPD 1.0.32
 
i use kloxo because is free panel ...
what can i use except kloxo ?? good, fast and free ?

onel0ve thanks for ur help, please tell me where and what exactly
should to do to run all domains on nginx ...
about vhost conf ?
 
Actually its easier to manage a website without webcp. You just need ssh and a lot of patience to learn. With kloxo mixing with nginx, you might run into some trouble as kloxo isn't designed to go with nginx.

How about using couldfare? Its a much simpler solution. Although I've heard they won't really block huge amounts of DDOS on a website.
 
i use kloxo because is free panel ...
what can i use except kloxo ?? good, fast and free ?

onel0ve thanks for ur help, please tell me where and what exactly
should to do to run all domains on nginx ...
about vhost conf ?
I guess webmin support nginx or you can use cPanel (paid )
but lol, I never use any control panel for nginx.
usually will manage it by ssh
or you can use Tunnelier if you are not so familiar with linux command

if you dont know where is the nginx.conf is
you can search it with this command
PHP:
find /-name nginx.conf
go to you nginx conf folder and create a folder named vhost under your ngnix.conf folder
copy the nginx.conf to the vhost folder
go to vhost folder and edit the copied nginx.conf as what you want (folder for the virtual host, etc) and rename it as what you want
and dont forget to edit the nginx.conf too
add this line before the latest }
PHP:
include vhost/*.conf;
so it would be like this
PHP:
include vhost/*.conf;
}
 
thank's for reply, server show (forbidden 403) ..
how can i run scripts (php) on nginx ? i shoulad install PHP-FPM or what ?
offcourse if you dont put any index file such as index.php or else
try add index.php
go to your domain folder
nano index.php
PHP:
 <?php 
 Print "Hello, World!";
 ?>
Ctrl-X and save
try to open it again :D
 
Status
Not open for further replies.
Back
Top