New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Web Design and Hosting Creating sites, scripting, and hosting discussions.

NameVirtualHost Problem


Post Reply New Thread Subscribe

 
Thread Tools
JBannister

 
JBannister's Avatar
 
Member Since: Apr 21, 2007
Location: Temple, GA
Posts: 91
JBannister is on a distinguished road

JBannister is offline
So I've done it over and over and tried to setup the two domains I want to host on my IP address. From what I've read I've done it correctly by going to the httpd-vhosts file and adding the two virtual host, but they still won't point to the domains when I type them in the browser. They are:
Index of / &
Index of /
I have no idea why when I type these in they go to the root folder where I have to actually click them to go to the site. I've done all this over and over and read the apache documentation to do it, but I'm at a stand still. I'd greatly appreciate any help.
Thanks.

justinlbannister.com & deltacapstone.com
They are going to the index files above for some reason.
QUOTE Thanks
Raz0rEdge

 
Raz0rEdge's Avatar
 
Member Since: Jul 17, 2009
Location: MA
Posts: 7,744
Raz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant futureRaz0rEdge has a brilliant future
Mac Specs: 27" i7 iMac, 24" iMac, 13" Macbook Air, iPhone 5 & 5S, iPod Nano 7th Gen, iPad 2 16GB WiFi, iPad 3

Raz0rEdge is offline
Show us your Apache configuration..

Regards
QUOTE Thanks
B-Ryan

 
Member Since: Feb 26, 2009
Posts: 20
B-Ryan is on a distinguished road

B-Ryan is offline
Keep all sites in one folder:
/Username/Sites

Then edit your http-vhost and host files to all point in one location:

Example http-vhost file (/private/etc/apache2/extra/httpd-vhosts.conf) entry:
Code:
#SomeSite.com 
<VirtualHost *:80> 
    DocumentRoot "/Users/yourUserName/Sites/somesite" 
    ServerName somesite.dev 
</VirtualHost>

#AnotherSite.com 
<VirtualHost *:80> 
    DocumentRoot "/Users/yourUserName/Sites/anotheresite" 
    ServerName anothersite.dev 
</VirtualHost>
Example host file (/private/etc/hosts) entry:
Code:
127.0.0.1 somesite.dev
127.0.0.1 anothersite.dev

16GB iPhone
17" MacBook Pro 2.93, 320@7200, glossy
http://www.bryanborst.com
QUOTE Thanks

Post Reply New Thread Subscribe


« AP Divs NOT showing up! | Text field won't change size in iWeb? »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
diagnosing kernel task/CPU problem on Macbook Air nick_harambee Apple Notebooks 9 08-20-2011 08:20 AM
Problem With Keyboard...... mmcltd OS X - Operating System 4 02-02-2010 07:47 PM
Possible faulty CPU thermometer, common problem? dyaballikl Apple Notebooks 6 11-16-2008 01:21 AM
Microsoft Messenger Problem millenium_spike OS X - Apps and Games 4 09-16-2008 02:11 AM
Problem Darwin Server + VLC nanaki Web Design and Hosting 0 03-13-2008 08:27 AM

All times are GMT -4. The time now is 03:18 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?