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

  • Home
  • SEARCH
  • 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 3437396
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:03:36+00:00 2026-05-18T08:03:36+00:00

I have an apache server installed on my portable windows 7 machine using xampp

  • 0

I have an apache server installed on my portable windows 7 machine using xampp as an interface. I’ve been working with a few people on an irc channel but must soon go to bed and replies are getting slower.

I have the following code added to my httpd.conf file:

#virtual servers
#Listen 80
NameVirtualHost *:80
<VirtualHost *:80>
    ServerName localhost.MEALS
    DocumentRoot C:\xampp\htdocs\MEALS
    DirectoryIndex index.php
</VirtualHost>
<VirtualHost *:80>
    ServerName localhost.HA
    DocumentRoot C:\xampp\htdocs\Hackers
    DirectoryIndex index.php
</VirtualHost>
<VirtualHost *:80>
    ServerName localhost.WIK
    DocumentRoot C:\xampp\htdocs\WhoIKnow
    DirectoryIndex index.php
</VirtualHost>
<VirtualHost *:80>
    ServerName localhost.TUS
    DocumentRoot C:\xampp\htdocs\Unity
    DirectoryIndex index.php
</VirtualHost>
<VirtualHost *:80>
    ServerName localhost.PHP
    DocumentRoot C:\xampp\htdocs\phpMyAdmin
    DirectoryIndex index.php
</VirtualHost>

And I have the following configuration:

Setting environment for using XAMPP for Windows.
John@ASSIMILATER C:\xampp
# httpd -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
_default_:443          localhost (C:/xampp/apache/conf/extra/httpd-ssl.conf:80)
*:80                   is a NameVirtualHost
         default server localhost.MEALS (C:/xampp/apache/to which there was conf/httpd.conf:512)
         port 80 namevhost localhost.MEALS (C:/xampp/apache/conf/httpd.conf:512)
         port 80 namevhost localhost.HA (C:/xampp/apache/conf/httpd.conf:516)
         port 80 namevhost localhost.WIK (C:/xampp/apache/conf/httpd.conf:520)
         port 80 namevhost localhost.TUS (C:/xampp/apache/conf/httpd.conf:524)
         port 80 namevhost localhost.PHP (C:/xampp/apache/conf/httpd.conf:528)
Syntax OK

John@ASSIMILATER C:\xampp
#

However when I try to access localhost.PHP in my web browser it tells me the server is not found. I was instructed that I need to resolve the host names on my machine. I was directed to a few irc channels (dns and windows) to which there was no reply. I searched google and ran across this site: http://technet.microsoft.com/en-us/library/bb727005.aspx#EEAA. I’m not quite sure what I’m reading and as near as I can tell it doesn’t quite give me a clear instruction on where to resolve the host name or a file to edit.

Also currently the default server is the top virtual server in the code. I would like to call localhost and show a simple html page I created which is in “htdocs/index.html” which will navigate to the other servers (links pointing to “localhost.PHP” etc). is there a way to have the default server remain “localhost” which points to “htdocs/index.html” while maintaining the other virtual servers, or will I have to create another virtual server and make that the default?

Any and all help appreciated.

edit: I had someone help me find the HOSTS file on my machine but am unable to edit it. I turned off all antivirus features, turned off spybot (UAC was always off and I always run with administrator privileges) specifically right clicked on np++ editpadlite and windows notepad and was only able to edit in notepad, but was required to save the file with a different name.

  • 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-05-18T08:03:37+00:00Added an answer on May 18, 2026 at 8:03 am

    You have to explicitly run Notepad as an administrator (regardless of UAC settings) and when you go to save, make sure you select ‘all files’ rather than the default *.txt.

    I found the same thing when I tried to edit the hosts file on W7, but it seems that just being an administrator on the machine isn’t quite the same as explicitly running the program as an administrator.

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

Sidebar

Related Questions

I have an Apache server installed on my windows machine using XAMPP. Now I'm
I have apache web server installed as frontend and I have j2ee SAP Netweaver
I have an Apache 2 installation on Debian with mod_ssl installed. The server private
I have Apache/SVN running on Windows Server 2003 with authentication via LDAP/Active Directory and
I have a web site using apache httpd as the server and mysql as
I have apache installed on one of my server on two different ports, all
We have subversion installed and running with apache server. The apache access log is
I have a WAMP 2.0 server installed on Win XP . Apache version :
I've installed XAMPP Apache server and put my website into htdocs. I've started Apache
I have a red5 server installed. It is working fine. I want to changes

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.