Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

hosts file fun [subdomains!]

  • 26-05-2006 08:38PM
    #1
    Registered Users, Registered Users 2 Posts: 3,357 ✭✭✭


    Well here I am to annoy again.
    Long story short, I have a server (named BANANA), and a website (snappieT.com)

    I've setup DNS and httpd.conf so that blog.snappieT.com works correctly, and from outside, it does perfectly. However, most of the time that I'll be using it will be when I'm inside my home network (and no, my router won't do it for me). I knew there were going to be problems, so I set it up so that blogs.snappieT.com actually displays what is on snappieT.com/blog.

    Problem is that I can't get the hosts file to do this properly. I have snappieT.com resolving to BANANA, no problem, but I can't get blog.snappieT.com to go to banana/blog.

    Is it possible, are there any other ways around it? (And in advance, no I don't want to have to use a proxy)

    Thanks in advance,
    snappieT


Comments

  • Registered Users, Registered Users 2 Posts: 18,484 ✭✭✭✭Stephen


    hosts file only points to an ip address i.e. you can't tack the /blog on the end.
    Point blog.snappiet.com to your webserver's ip.
    You will need to configure your webserver to redirect requests to blog.snappiet.com to snappiet.com/blog.

    Google for "host headers". Exactly what you will need to do will depend on what web server you use.


Advertisement