Results 1 to 2 of 2
  1. #1

    Dealing with subdomains when running locally

    I'm working on a php based file download site where the download page for every file has a url like this: h??p://
    I want to run this site locally for debugging and testing, but I get a "filename.localhost" not found error in my browser when I try to access a download page locally.

    I'm running apache2 on WinXP and set it up so I can access the sites home page by typing h??p:// localhost/mysite/ . The site's files are in c:\web .

    Thanks for any help!

  2. #2
    Join Date
    May 2004
    Lansing, MI, USA
    I believe if you add *.localhost

    to your hosts file you will be fine. Google "windows hosts file" and you'll find the location.
    Jacob - WebOnce Technologies - 30 Day 100% Satisfaction Guarantee - Over 5 Years Going Strong!
    Website Hosting, PHP4&5, RoR, MySQL 5.0, Reseller Hosting, Development, and Designs
    Powered By JAM - Professional Website Development - PHP, MySQL, JavaScript, AJAX - Projects Small & Large

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts