domain help
September 21, 2016 04:51PM
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 when i type in my website will show...the problem i have is when i click on a link the address will always be:

instead of:

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;
client_max_body_size 500M;

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

error_log logs/error.log;

location / {
autoindex off;

location @php {
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
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 86
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready