© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
AdmincraftA
Admincraft•3y ago•
45 replies
lavaking46

Whats wrong with this config?

I created this nginx config(using my own domain not example) and restarted nginx but when I went to the website it still directs me to the local server rather than the "remote" server I want it to
server {
    listen 80;
    server_name example.com;
 
    location / {
        proxy_pass http://other-server;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}
server {
    listen 80;
    server_name example.com;
 
    location / {
        proxy_pass http://other-server;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}
AdmincraftJoin
10,704Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

whats wrong with the server's java?
AdmincraftAAdmincraft / questions
6mo ago
whats this error?
AdmincraftAAdmincraft / questions
12mo ago
I don't understand whats wrong here
AdmincraftAAdmincraft / questions
15mo ago
Need help with CharacterDialogue config
AdmincraftAAdmincraft / questions
3y ago