Of course there is.
You create a nginx.conf file in your home directory with similar content (replace [USERNAME] by your login):
error_log /home/[USERNAME]/nginx.log;
pid /home/[USERNAME]/nginx.pid;
http {
include /etc/nginx/mime.types;
index index.php;
client_body_temp_path /home/[USERNAME]/tmp;
proxy_temp_path /home/[USERNAME]/tmp;
fastcgi_temp_path /home/[USERNAME]/tmp;
uwsgi_temp_path /home/[USERNAME]/tmp;
scgi_temp_path /home/[USERNAME]/tmp;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for" "$http_cookie" "$sent_http_content_type"';
access_log /home/[USERNAME]/nginx-access.log main buffer=32k;
gzip on;
server {
listen 1234;
server_name server.example.com;
root /home/[USERNAME]/public_html;
index index.php;
...
}
}
And then run /usr/sbin/nginx -c /home/[USERNAME]/nginx.conf
- it will start server for your user. Remember that only root can bind to ports below 1024 (i.e. 80). You will have to configure the server to listen on some other port.