I have 2 files.
I'm having an hard time trying to find out how to reduce this "repeated lines" for my NGinx configuration, just to change one property :
server {
#listen [::]:443 ipv6only=on; ## listen for ipv6
listen 443;
server_name my.website.com;
access_log /var/log/nginx/my.website.com_access.log;
error_log /var/log/nginx/my.website.com_error.log;
s
I'm trying to setup an Owncloud 4 instance with nginx as a webserver. The host device is a Raspberry Pi with preinstalled Debian 6. When I try to open the URL to the Owncloud installation in a browser, I get a No input file specified. The installation is placed in /var/www/owncloud/owncloud.
I just transfered a website to a new server; here is my sites conf (vhost) in nginx and the last 2 entries from error.log .
The images are not displaying when the index.php loads.
regars,
server {
listen 80; ## listen for ipv4
listen [::]:80 default ipv6only=on; ## listen for ipv6
server_name maissane;
access_log /var/log/nginx/localhost.access.log;
root /var/w
i have a server
server {
listen 80; ## listen for ipv4
listen [::]:80 default ipv6only=on; ## listen for ipv6
access_log /var/log/nginx/localhost.access.log;
location ~* \.(png|ico)$ {
root /home/anatoly/gyazo;
}
location / {
proxy_pass http://127.0.0.1:8080;
proxy_redirect off;
proxy_set_header Ho
I have the following nginx configuration (at /etc/nginx/sites-available/default)
server {
listen 80; ## listen for ipv4; this line is default and implied
listen [::]:80 default ipv6only=on; ## listen for ipv6
root /usr/share/nginx/www;
index index.php index.html index.htm;
server_name _;
location / {
try_files $uri $uri/ /index.html;
}
error_pag
I would like to serve multiple sites on one instance.
I install nginx, php-fpm, and a rails app.
I'm setting up Nginx with PHP 5.3 for multiple websites running wordpress for example. I just added a new site and it's being redirected to the default welcome page.
I have 2 sites-enabled, with server_name as follows:
server_name www.mysite.com mysite.com
and
server_name dev.mysite.com
Problem: When I access the website via its IP address, by looking at the access/error logs, it appears that nginx is serving off the root of dev.mysite.com.
How does nginx decide which to serve?