How to run multiple sites on localhost (windows)

Author Message

Nicklas Lundgren

Saturday 11 September 2004 1:11:57 am

Hi folks,

I have a problem reaching multiple sites in my local windows machine. I want them all to be accessible by subdomains to "localhost". like:
web1.localhost
web2.localhost

I know how to map this in the ini-files of eZ, and I know how to get it to work with virtual hosts in Apache. However - how do I get my local machine to respond to those url:s?
Is there any way to declare that both web1.localhost and web2.localhost should be mapped to localhost?

Any suggestions is greatly appreciated.

Regards,
/Nicklas

Stian Lindhom

Wednesday 15 September 2004 7:45:21 am

In other words this isn't really related to EZP at all? :)

Try googling for <i>"host file windows"</i> or eventually <i>"windows dns server"</i> if you want to go the "hard way". That should give you all the information you'd need to set this up.

Another totally irrelevant question is, why would someone want to do this...?

Regards,
Stian

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 01:16:17
Script start
Timing: Jan 31 2025 01:16:17
Module start 'layout'
Timing: Jan 31 2025 01:16:17
Module start 'content'
Timing: Jan 31 2025 01:16:17
Module end 'content'
Timing: Jan 31 2025 01:16:17
Script end

Main resources:

Total runtime0.0225 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 588.3828151.2422
Module start 'layout' 0.00450.0038 739.6250220.7500
Module start 'content' 0.00820.0128 960.3750997.8672
Module end 'content' 0.02110.0014 1,958.242229.9922
Script end 0.0225  1,988.2344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002410.5380140.0002
Check MTime0.00104.4699140.0001
Mysql Total
Database connection0.00083.440010.0008
Mysqli_queries0.002310.366530.0008
Looping result0.00000.048710.0000
Template Total0.00104.510.0010
Template load0.00083.374410.0008
Template processing0.00021.078610.0002
Override
Cache load0.00052.094710.0005
General
dbfile0.00198.360880.0002
String conversion0.00000.027540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs