473,407 Members | 2,598 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Mac OS X Leopard VirtualHost not working

helimeef
Hey all, I'm having trouble setting up VirtualHosts on an Apache server running on Mac OS X 10.5 Leopard. I followed this tutorial, and everything is working (except VirtualHost of course).
Okay, so here's the deal. If I run apachectl it says that there is no errors in the httpd.conf file. Here is the VirtualHost section of httpd.conf:
Expand|Select|Wrap|Line Numbers
  1. <VirtualHost *>
  2.   DocumentRoot /Library/WebServer/Documents/bonnielynd
  3.   ServerName bonnielynd.local
  4. </VirtualHost>
  5.  
Here is the contents of /etc/hosts that contains the VirtualHost data:
Expand|Select|Wrap|Line Numbers
  1. # My Sites
  2. 127.0.0.1 bonnielynd.local
  3.  
And here is /etc/apache2/extra/httpd-vhosts.conf:
Expand|Select|Wrap|Line Numbers
  1. <VirtualHost *>
  2.   DocumentRoot "/Library/WebServer/Documents"
  3.   ServerName localhost
  4. </VirtualHost>
  5.  
  6. <VirtualHost *>
  7.         DocumentRoot /Library/WebServer/Documents/bonnielynd
  8.         ServerName bonnielynd.local
  9. </VirtualHost>
  10.  
However when I visit bonnielynd.local, all it says is "Index of /" and it shows all of the files in the root server. Also, I have a file in the root folder of my server called "info.php", and I can type in bonnielynd.local/info.php" and it will display that page; so clearly it's displaying the files on /Library/WebServer/Documents instead of /Library/WebServer/Documents/bonnielynd.
And yes that folder DOES exist.
Can somebody help me fix this? I'm stumped.

P.S. I've installed Apache, PHP, and MySQL on Windows XP, and I never had such problems.
Mar 2 '08 #1
1 6217
Never mind I fixed it, and BOY am I happy, my client was getting angry -_-
Anyways I needed to replace the asterisks (*) in the <VirtualHost> "tags" with 127.0.0.1 (I figured this out by firing up my PC and looking at httpd.conf).
But thanks to whoever would have helped :)
Mar 2 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: =?iso-8859-1?B?QW5kcuk=?= | last post by:
I just installed Leopard on my Mac. I already was using Python 2.5. I can run a Python script from a terminal window by typing "python script.py" as one would expect ... but not using the Python...
9
by: camphor | last post by:
hi, I am very new to PHP and trying to set up a virtual host in Apache so I can test the protx Form PHP Intergration kit I received this message after I restarted Apache: Syntax error on...
13
by: Gordon | last post by:
I want to use my new Macbook Pro as a development platform for work, so I went looking for info on installing Apache, PHP, Postgres, etc on Leopard. I discovered in my search that Apache and PHP...
4
by: mark | last post by:
I've recently switched from Ubuntu to OS X Leopard. I have some python scripts which download info from the web. The scripts were working fine before on Ubuntu, but urllib seems to work really...
8
by: geert | last post by:
Hi all, I have a mac mini running maocosx 10.5 leopard I want to deploy a django project on. My backend is MySQL, and I have it running as a 64- bit app. Of course, apache2 is also running as...
0
dlite922
by: dlite922 | last post by:
I need help with redirecting virtualhosts to use HTTPS (SSL) when they type in HTTP Must work in IE. Right now there is two virtual host blocks for every subdomain. I want to combine the...
3
by: Gordon | last post by:
Has anybody had any success compiling a PHP build for Leopard, specifically for Leopard running on a 64 bit Intel architecture? I have been using the Entropy builds up to now but there has been a...
1
by: blackbiscuit | last post by:
Hi, I wanna have boost installed on my mac leopard system. I have searched through google and it seems the boost can not been directly installed but through tools like macports. Since it is...
6
by: Massi | last post by:
Hi everyone, I'm trying to install Python2.6 on my mac (Leopard 10.5.5), but I'm encountering some problems. To install the package I followed the instructions I found at this link:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.