Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8633963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:36:09+00:00 2026-06-12T09:36:09+00:00

I have a NAS/Server running at home 24/7 and run many different services on

  • 0

I have a NAS/Server running at home 24/7 and run many different services on it. I have got a domain name pointing to it now, and was wondering if it would be possible to create sub-domains that point to different ports for different services. For example:

  • http://subsonic.mydomain.com –> XXX.XXX.XXX.XXX:4040
  • http://minecraft.mydomain.com –> XXX.XXX.XXX.XXX:25565
  • http://files.mydomain.com –> XXX.XXX.XXX.XXX:4082

I have a single D-LINK router that currently port forwards all these ports to my NAS/Server whose IP is 192.168.0.104.

EDIT: The server is running Ubuntu 12.04.

What service or proxy do I need to run that can recognize the sub domain and route the traffic accordingly? Or could I use apache virtual hosts to handle this, because these subdomains will come in on port 80, which apache is listening to? Or does virtual hosts not work like this?

Any information, ideas, or tips would be helpful/useful.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T09:36:10+00:00Added an answer on June 12, 2026 at 9:36 am

    There are two ways to do this. You could use the VirtualHost section of your httpd.conf or you could do it in your .htaccess. (assuming that the subdomains resolve to the same IP as your webserver)

    In httpd.conf:

    <VirtualHost *:80>
        ServerName subsonic.mydomain.com
        redirect / http://mydomain.com:4040/
    </VirtualHost>
    

    In .htaccess:

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^subsonic\.mydomain\.com$ [NC]
    RewriteRule ^(.*)$ http://mydomain.com:4040/$1 [R=301]
    

    Documentation:
    – Guide to creating name-based virtual hosts
    – Core, including VirtualHost and NameVirtualHost
    – Redirect
    – mod_rewrite guide

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a QNAP NAS TS 209 SII running a Twonky media server (Version
I have a website running on a NAS server and I also have a
I have a small NAS server (QNAP TS-210) with a limited Linux on-board. I
I have a D-Link DNS-323 NAS, running some sort of Linux as its OS.
I have a webpage on a linux NAS, with webserver and php running. I
I'm using php 5.2 with IIS7.5. I have a network share on a NAS
I have an array, like var acronyms = { 'NAS': 'Nunc ac sagittis', 'MTCP':
We are currently running vmware esx server in our office network. Our vmware guest
I have made up a simple set of web services (trying to make a
I have created an SVN repository on a Windows NAS with TortoiseSVN in Windows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.