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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:54:34+00:00 2026-06-04T04:54:34+00:00

Coding for PHP on Mac OSX Lion, using the following within the httpd.conf file:

  • 0

Coding for PHP on Mac OSX Lion, using the following within the httpd.conf file:

<VirtualHost *:80>
    DocumentRoot /Users/user/Sites/wordpress
    ServerName wordpress.local
    <Directory “/Users/user/Sites/wordpress">
        AllowOverride All
        Options All
    </Directory>
</VirtualHost>

and in the hosts file:

127.0.0.1 wordpress.local

This all works fine. What I want to be able to do is allow that first section to accept some sort of wildcard so that I can add several pages to the hosts file, but not have to keep messing with the httpd.conf file. I used to be able to use %1 and %0 instead of the directory name to get this working, but there now seems to be a problem with that.

All help much appreciated.

Cheers,
David.

  • 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-04T04:54:36+00:00Added an answer on June 4, 2026 at 4:54 am

    The following blogpost by Rob Allen should help, I think : Automatic Apache vhosts

    The first part of the article is about mod_vhost_alias, which will allow you to use wildcards for ServerAlias, a VirtualDocumentRoot directive it adds, and Directory.

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

Sidebar

Related Questions

I am new in PHP with classes. I am coding an network ip-mac-user logging
Using php coding, I'm attempting to make a script which will grab content from
I have been coding in php and using codeigniter as well, never got the
i use aptana-studio 3 on mac for coding php my problem is auto-complete does
i am coding a PHP website, and now want to hide the PHP file
I'm coding in PHP/MySQL and have the following query to fetch products and product
(Coding PHP with MySQL) Fatal error: Cannot redeclare logged_in() (previously declared in C:\xampp\htdocs\Project\Func\user.func.php:9) in
A long shot but here's hoping someone has some experience coding PHP hooks for
I am coding in php, attempting to get the start\end dates and times for
Everything I read about better PHP coding practices keeps saying don't use require_once because

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.