How can i setup apache on a mac with out auto vhosts

I want to follow these instructions but don't want to use auto vhosts.  what do I have to modify?

https://echo.co/blog/os-x-1010-yosemite-local-development-environment-apache-php-and-mysql-homebrew
LVL 3
Computer GuyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

serialbandCommented:
What do you mean by auto vhosts?  Did you mean that you want to set specific host domain names instead of a catch all?

You just need to change these lines from that example in your link
<VirtualHost *:8443>
  ServerName dev
  ServerAlias *.dev

To something like
<VirtualHost *.myserver:8080>
  ServerName myserver
  ServerAlias *.myserver

<VirtualHost test.myotherserver:80>
  ServerName myotherserver
  ServerAlias test.myotherserver

<VirtualHost *.myotherserver:80>
  ServerName myotherserver
  ServerAlias *.myotherserver



I've changed the port to 8080 and 80 so you'd understand that you can change the port number and the server name if you wish.  The asterisk means mach any expression

P.S. Apache isn't Mac specific.  You should have included linux and you would get more responses sooner.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Mac OS X

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.