Hoping someone might help me sort this out.I don't get any syntax highlighting in vim when I use it with sudo. For example, I have just installed nginx and need to edit the configuration files. When I run vim /opt/nginx/conf/nginx.conf from the terminal, I get a nicely highlighted config file which I can't save.
When I open vim for a file like /etc/nginx/sites-available/default, syntax highlighting works fine. But then if I create my own file /etc/nginx/sites-available/myapp, vim does not highlight its syntax. I have to do :setf conf every time.
Is there anything I can put in ~/.vimrc to tell vim "if you don't know which syntax to use, just use conf" ?
A .vimrc template for a vim noob is also welcome.
I added a server stanza to my virtual.conf, and now nginx seems to have a problem reloading the config.
At this point I don't know what exactly is going wrong or how to debug better.
I'm trying to configure NginX, that was installed using passenger-install-nginx-module.
I edit /opt/nginx/conf/nginx.conf but there is no effect at all.
When I run passenger I do the following command:
sudo passenger start /home/ror/current -etest -p80 --user=ror
My px aux | grep nginx shows the following:
0:00 nginx: master process /var/lib/passenger-standalone/3.0.12-x86_64-ruby1.8.7-linux-
Firstly I setup nginx and uwsgi via apt-get.
And,I add the line to nginx conf file(/etc/nginx/conf.d/default.conf) like below line;
server {
listen 80;
server_name <replace with your hostname>;
#Replace paths for real deployments...
access_log /tmp/access.log;
error_log /tmp/error.log;
location / {
include uwsgi_params;
uwsgi_pass 127.0.0.1:8889;
}
}
I had a error;
Starting
I try to deploy my app via capistrano. It was done, but when I start to nginx and show my site in the browser I see 'We're sorry, but something went wrong.'
It is bad. I use unicorn.
dI logged into my EC2 console created a new instance and attached an Elastice IP to it. Then I logged into the server and installed Nginx:
$ sudo apt-get install nginx
$ sudo /etc/init.d/nginx start
$ Starting nginx: nginx.
When I navigate to the Elastic IP (or Public DNS) I get nothing. The default setting should be enough to show me the default Nginx welcome page right?
Hey i need some help with the Init.d script for Nginx
This is my Nginx files locations -
nginx path prefix: "/usr/local/nginx" nginx binary file: "/usr/local/nginx/nginx"
nginx configuration prefix: "/usr/local/nginx"
nginx configuration file: "/usr/local/nginx/nginx.conf"
nginx pid file: "/usr/local/nginx/nginx.pid"
nginx error log file: "/usr/local/nginx/logs/error.log"
nginx http
I have gzip enabled on nginx 1.2.8, but for some reason, it is not gzipping anything.
Nginx install info:
nginx version: nginx/1.2.8
built by gcc 4.7.2 (Ubuntu/Linaro 4.7.2-2ubuntu1)
TLS SNI support enabled
configure arguments: --prefix=/usr/local/nginx-1.2.8 --with-http_ssl_module --with-http_realip_module --with-http_gzip_static_module --with-pcre --conf-path=/etc/nginx/nginx.conf --add-modul