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 3398398
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:38:40+00:00 2026-05-18T04:38:40+00:00

I managed to set up virtual hots on my local machine, but I kinda

  • 0

I managed to set up virtual hots on my local machine, but I kinda run into a wall now.

Normally, when you type localhost/ into browser you will see what you are supposed to see. But after I have set my virtual hosts, anything I type goes to the vhost. I cant figure a way to have a virtual host AND the old functionality together.

Here is my vhost file (btw, I am using xampplite)

<VirtualHost domain.eu>
    ServerName domain.eu
     DocumentRoot /www/domain

     ServerAlias *.domain.eu
</VirtualHost>

<VirtualHost domain.sk>
    ServerName domain.sk
    DocumentRoot /www/domain
</VirtualHost>

The second one gets redirected to sk.domain.eu via htaccess. When I add these 3 lines to vhosts, localhost starts working, but even the other vhosts go to /www/

<VirtualHost localhost>
    DocumentRoot /www
</VirtualHost>

But to comment/uncomment these 3 lines everytime I need to localhost is stupid. Any advice how can I keep both of them working together?

Thanks for your time

  • 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-18T04:38:41+00:00Added an answer on May 18, 2026 at 4:38 am

    Try adding this before the VirtualHost containers:

    NameVirtualHost localhost
    NameVirtualHost domain.sk
    NameVirtualHost domain.eu
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I managed to set up a server(on PC) and a Client (on device) thru
I have managed to set up Cassandra + Thrift and the Python wrapper for
Are there any utilities that can examine a set of managed assemblies and tell
Is there an easy way to set the volume from managed .net code?
Is it possible to set a tab control style like TSC_BUTTONS on a managed
We've got a set of forms in our web application that is managed by
On a 64-bit Windows machine with 12GB of RAM and 33GB of Virtual Memory
I am having an issue with the Android 4.0 virtual machine. I am on
I'm new to MVC3, but so far I have managed to get along with
Assume the following schema class Person{ public int Id {get;set;} public virtual ICollection<Province> Provinces

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.