Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

domain help

$
0
0
i'm having some trouble setting up my domain with nginx if someone could please help me.

i have a domain which is forwarded with mask to my ip...so when i type in mydomain.com my website will show...the problem i have is when i click on a link the address will always be:

mydomain.com

instead of:

mydomain.com/whatEver.php

i've searched about for solutions but i have had no luck if someone can please tell me what it is i need to do.

here is my config as it stands

events {
worker_connections 1024;
}

http {
keepalive_timeout 300;
proxy_read_timeout 300;
proxy_connect_timeout 300;

include mime.types;

server {
listen 80;
server_name 192.168.1.67;
client_max_body_size 500M;

charset utf-8;
index index.html index.htm index.php;
root E:/myterms.co.uk;

error_log logs/error.log;

location / {
autoindex off;
}

location @php {
fastcgi_pass 192.168.1.67:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}

location ~* \.php$ {
try_files $uri/ @php;
}

location = /favicon.ico {
log_not_found off;
}

location ~ \.css {
add_header Content-Type text/css;
}

location ~ \.js {
add_header Content-Type application/x-javascript;
}
}
}


thank you

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>