Make Virtual Host in Engine X (nginx)
by alamster in August 14th, 2008
Since last time I install php-fpm in my freebsd box I still looking way to make virtualhost. I think its not easy to make vhost in nginx but I’m wrong
Just add :
server {
directive
}
will add new vhost.
Full sample from my vhost :
server {
listen 80;
server_name sandbox.digitalfusi.com;
location / {
index index.php index.html;
root /usr/local/www/nginx/sandbox;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME
/usr/local/www/nginx/sandbox$fastcgi_script_name;
include fastcgi_params;
}
}
another feature that I learn too is ‘autoindex’ since my friend need to list all files and directory if no index files exists.
For more fancy index I need to recompile it with fancyindex but I’m OK with it
Full sample of nginx.conf for two vhost with autouindex on and off can be download from here.
- nginx autoindex
- nginx vhost php
- nginx autoindex css
- nginx virtualhost
- nginx php virtual hosts
- nginx virtual host php
- nginx virtual host
- nginx php virtual host
- nginx php vhost
- nginx virtual hosts
- nginx fancy index
- nginx hosting virtualhost
- virtualhost x
- ngix vhost
- nginx vhost
- nginx php-fpm vhost
- fpm nginx vhost
- nginx server vhost php
- virtualhost php nginx
- php-fpm vhost
- php-fpm pkg opensolaris
- php virtualhost nginx
- vhost php-fpm
- nginx virtual domains
- virtual hosts nginx freebsd
- vhost on nginx
- virtualhost nginx php
- nginx simple vhost
- nginx virtualhost on win
- vhost nginx
- nginx virtual host php-fpm
- vhost di nginx
- nginx-fancy index-0 1 error compiling
- nginx virutal hosts php
- nginx virtualhost php
- php-fpm opensolaris
- php-fpm script_filename virtualhost
- freebsd nginx fancyindex
- php-fpm virtualhosts nginx
- nginx virtual hosts php-fpm
- nginx virtual host with php
- nginx vhost priority
- nginx sandbox vhost
- make vhost your self
- make vhost for free
- how to virtual host nginx
- how to make vhost
- hotlink protect nginx
- hot link protection nginx
- freebsd nginx virtual hosts







No Comment
Random Post
Leave Your Comments Below