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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:45:59+00:00 2026-06-07T05:45:59+00:00

I have problems setting up my local development environment on a mac. What i

  • 0

I have problems setting up my local development environment on a mac.

What i have (added):

/private/etc/hosts:

127.0.0.1       dev.local
127.0.0.1       page1.dev.local

/Applications/MAMP/conf/apache/httpd.conf:

NameVirtualHost *

<VirtualHost dev.local:8888>
    ServerName dev.local
    DocumentRoot /Users/user1/Sites/
    <Directory /Users/user1/Sites/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>
</VirtualHost>

<VirtualHost page1.dev.local:8888>
    ServerName page1.dev.local
    DocumentRoot /Users/user1/Sites/page1/
    <Directory /Users/user1/Sites/page1/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>
</VirtualHost>

Basically I would like to have a “root” accessible via http://dev.local and physically at /Users/user1/Sites

The first project (page1) accessible via http://page1.dev.local and located at /Users/user1/Sites/page1

The next projects follow the same logic.

When I open http://dev.local I see the correct page but with http://page1.dev.local I get the same page.

I always restart Apache of course!

  • 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-06-07T05:46:00+00:00Added an answer on June 7, 2026 at 5:46 am

    I found a solution which works: I have to insert a ServerAlias and add an asterix after VirtualHost

    NameVirtualHost *
    
    <VirtualHost *:8888>
        ServerName dev.local
        ServerAlias dev.local
        DocumentRoot /Users/user1/Sites/
        <Directory /Users/user1/Sites/>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride All
            Order allow,deny
            allow from all
        </Directory>
    </VirtualHost>
    
    <VirtualHost *:8888>
        ServerName page1.dev.local
        ServerAlias page1.dev.local
        DocumentRoot /Users/user1/Sites/page1/
        <Directory /Users/user1/Sites/page1/>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride All
            Order allow,deny
            allow from all
        </Directory>
    </VirtualHost>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I don't have this problem on my local development environment, but I just deployed
I have run into problems getting my local php and rails development environments to
I have problems setting the focus on an input element that has been created
Hallo. I have problems by setting the Eclipse envirorment, can anybody provide me a
i have problems with a really basic thing. setting properties after instantiation a UIViewController-
I'm new to cakephp and I'm having some problems with setting up a local
I'm running into a problem setting up my development environment. I've been working on
I have setup phusion passenger on my development server. <VirtualHost *:80> ServerName railscasts.local DocumentRoot
I'm having problems setting up a django project on my mac os x 10.5.
I have problem with setting proper charset on my jsf pages. I use MySql

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.