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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:02:07+00:00 2026-05-24T17:02:07+00:00

I am using xampp. I’ve set up a project in symfony and added this

  • 0

I am using xampp.

I’ve set up a project in symfony and added this to apaches httpd.conf:

<VirtualHost 127.0.0.1:80>
  ServerName www.plusoneboosters.com.localhost
  DocumentRoot "C:\my_xampp\xampp\htdocs\plusoneboosters\web"
  DirectoryIndex index.php
  <Directory "C:\my_xampp\xampp\htdocs\plusoneboosters\web">
    AllowOverride All
    Allow from All
  </Directory>
  Alias /sf "C:\my_xampp\xampp\htdocs\plusoneboosters\lib\vendor\symfony\data\web\sf"
  <Directory "C:\my_xampp\xampp\htdocs\plusoneboosters\lib\vendor\symfony\data\web\sf">
    AllowOverride All
    Allow from All
  </Directory>
</VirtualHost>

I also added this to hosts file (Windows):

127.0.0.1 www.plusoneboosters.com.localhost

This project works, but all the projects that are not installed with symfony aren’t working anymore – running localhost/project/index.php will redirect to the symfony project.

I suspect this is happening because htaccess, but do not know what to replace in order to make it work.

I also tried adding another virtual host, didn’t work.

How can I work around this?

Edit: I think I found a solution.

I added another Virtual host in httpd.conf with a different IP: 127.0.0.2 and it seems to be working fine now. I’m not sure if this is the right way to do it though…

  • 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-24T17:02:07+00:00Added an answer on May 24, 2026 at 5:02 pm

    When you start to use virtual hosts you need to define at least two of them to keep your old configuration working otherwise your symphony vhost became the default vhost and intercept all the requests. So add to your apache configuration the following lines BEFORE the symphony vhost configuration

    # this allows vhost based on hostname and NOT on ip only
    NameVirtualHost *
    
    <VirtualHost _default_>
      ServerName localhost
      DocumentRoot "your old document root"
      DirectoryIndex index.php
      <Directory "your old root document root">
        AllowOverride All
        Allow from All
      </Directory>
    </VirtualHost>
    
    <VirtualHost *>
      ServerName www.plusoneboosters.com.localhost
      ...
    </VirtualHost>
    

    If you have access to apache command line tool you can check the vhost configuration and priority with apachectl -S which gives you a report of all the defined virtual hosts

    Apache virtual host examples

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

Sidebar

Related Questions

This article explains how to use Zend in Codeigniter. http://www.beyondcoding.com/2008/02/21/using-zend-framework-with-codeigniter/ I am using XAMPP
I know how to set up a local webserver using xampp on windows... I
I am using XAMPP on Windows Vista. In my development, I have http://127.0.0.1/test_website/ . How
I have set up a local server using XAMPP. I am making a request
I have a project written with zend framework. I was using xampp for my
I am currently using XAMPP and Thunderbird 3 and wish to set up my
I'm very new to this. Why is openssl_pkey_new() returning false? I am using XAMPP
i m using xampp any project that is saved in htdocs is open in
I am using XAMPP, Apache 2.2.17. I have added virtual host but my virtual
I'm trying to setup symfony under my local development machine using xampp 1.7.4 (with

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.