Welcome! Log In Create A New Profile

Advanced

Subdomain on same IP

Posted by MrFurgy 
Subdomain on same IP
February 19, 2015 02:48AM
Hi!

First, sorry if my english isn't perfect, i hope you understand what my problem is.

I have an Ubuntu 14.04 LTS x64 with nginx and subsonic on a vserver with 1 IP.
What i want:
- Homepage on domain.com
- Subsonic on subdomain.domain.com

With my configuration it works half... on domain.com is my website, and subdomain.domain.com is redirected to domain.com:4040 where subsonic is running...

What do i have to configure that the browser shows subdomain.domain.com instead of domain.com:4040 when open subdomain.domain.com?

I have configured this server block for the subdomain - i think its not correct...

server {
listen 80;
listen [::]:80;
server_name megeza.uugoma.com;
return 301 http://uugoma.com:4040$request_uri;

}

Thank you for your help!
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 213
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready