Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 23rd, 2012, 05:25 PM
Superman859 Superman859 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2007
Posts: 313 Superman859 User rank is Sergeant Major (2000 - 5000 Reputation Level)Superman859 User rank is Sergeant Major (2000 - 5000 Reputation Level)Superman859 User rank is Sergeant Major (2000 - 5000 Reputation Level)Superman859 User rank is Sergeant Major (2000 - 5000 Reputation Level)Superman859 User rank is Sergeant Major (2000 - 5000 Reputation Level)Superman859 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Days 9 h 51 m 59 sec
Reputation Power: 29
Using Both Name-Based Virtual Host and IP Based

Hey all,

Just a quick question to verify if I am doing this correctly. I have a server that I want to host a few domains, although one of them will need an SSL cert. For that reason, that domain will be given it's own IP but the remainder of the domains can share. My understanding is kind of a mix between IP and Name Based Virtual Hosts.

My structure is kind of as follows - it seems to work alright thus far in development but just wanted to check here in case I'm going about it the wrong way or if this will introduce some issues I'm unaware of.

Code:
// first set up for the shared space
NamedVirtualHost *:80

<VirtualHost *:80>
ServerName blah
blah blah
</VirtualHost>

// everything above here is just as in examples for setting up named virtual host - even includes a default site for when specified by IP only.  Now do IP specific stuff

NamedVirtualHost #.#.#.#:80
<VirtualHost #.#.#.#:80>
Specifics for the domain that needs SSL cert
</VirtualHost>


Seem right? I couldn't find any examples that did both as they either go one way or another. It seems to work and seems as if the #.#.#.#:80 overrides the previous *:80 being used. I still wanted to use * and not have to manually specify the public shared IP every time, but just don't want it to apply to the IP specific stuff.

Reply With Quote
  #2  
Old January 24th, 2012, 08:15 AM
Kravvitz's Avatar
Kravvitz Kravvitz is offline
CSS & JS/DOM Adept
Dev Shed God 30th Plane (19500 - 19999 posts)
 
Join Date: Jul 2004
Location: USA
Posts: 19,835 Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level)Kravvitz User rank is General 48th Grade (Above 100000 Reputation Level) 
Time spent in forums: 6 Months 1 Day 22 h 11 m
Reputation Power: 4192
I'm not aware of a "NamedVirtualHost" directive. Perhaps you mean "NameVirtualHost"?

Otherwise that looks fine.
__________________
Spreading knowledge, one newbie at a time. I'm available for hire at Dynamic Site Solutions.

Check out my blog. | Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Common CSS Mistakes | Common JS Mistakes

Remember people spend most of their time on other people's sites (so don't violate web design conventions).

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Using Both Name-Based Virtual Host and IP Based

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap