Re: Alternate Ports and Virtual Directories

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Awesome, thank you.  One last question; there's really no need to have 80
referenced at all as it's being used by my SSAS server, do you think it's
better to keep the 80's in there or take them out?


Tom Evans-3 wrote:
> 
> On Thu, Mar 8, 2012 at 4:35 PM, Crispen Smith <crispen.smith@xxxxxxxxx>
> wrote:
>>
>> Thank you Simone,  but I feel that you're jumping to the end of the
>> story.
>> I'm quite happy to change the virtual posts to port 8888 once I get
>> localhost working correctly, but I'd like to understand that piece as
>> well.
>>
>> Does that make sense?
>>
> 
> It doesn't make sense to me. Do you want to run on port 8888 or port
> 80? You use them inter-changeably...
> 
> Personally, I would use this configuration
> 
> ServerName localhost
> Listen 80
> Listen 8888
> 
> DocumentRoot c:/empty
> 
> <Directory c:/empty>
>   Order allow,deny
>   Allow from all
> </Directory>
> 
> NameVirtualHost *:80
> NameVirtualHost *:8888
> 
> <VirtualHost *:80>
>   ServerName ct.local
>   DocumentRoot c:/sites/ct/htdocs
>   <Directory c:/sites/ct/htdocs>
>     Order Allow,Deny
>     Allow from localhost
>   </Directory>
> </VirtualHost>
> 
> <VirtualHost *:8888>
>   ServerName ct.local
>   DocumentRoot c:/sites/ct-high-port/htdocs
>   <Directory c:/sites/ct-high-port/htdocs>
>     Order Allow,Deny
>     Allow from localhost
>   </Directory>
> </VirtualHost>
> 
> So this sets up a blank empty default site, and then two vhosts. If
> you don't match a vhost by ServerName, you get the empty site.
> 
> If you want :8888 and :80 vhosts to behave the same, simply change all
> to '<VirtualHost *>' and 'NameVirtualHost *'.
> 
> Cheers
> 
> Tom
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Alternate-Ports-and-Virtual-Directories-tp33465842p33466312.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux