HostMatch regular expression

Author Message

Eirik Alfstad Johansen

Monday 20 October 2003 3:02:07 am

Hi,

I need some help building the HostMatch regular expression for our ezP installation. What I want is for each domain to point to a siteaccess with the corresponding name. This is except for "www." which should be ignored if it exists.

Here are some examples:

mydomain.no -> siteaccess named "mydomain.no"
www.mydomain.no -> siteaccess named "mydomain.no"
somesite.mydomain.no -> siteaccess named "somesite.mydomain.no"
www.somesite.mydomain.no -> siteaccess named "somesite.mydomain.no"

I'm also looking for suggestions on how to point to the admin interface. My idea is to prepend the hostname with "admin.", but I'm open for suggestions.

Thanks in advance !

Sincerely,

Eirik Johansen
Netmaking AS

http://www.netmaking.no/

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Eirik Alfstad Johansen

Monday 20 October 2003 4:11:41 am

Having done some testing, I realize that I might not be able to use the structure above as there seems to be some a problem using siteaccesses with periods. Anyone else familiar with this?

- Eirik

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

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 06:24:12
Script start
Timing: Jan 31 2025 06:24:12
Module start 'layout'
Timing: Jan 31 2025 06:24:12
Module start 'content'
Timing: Jan 31 2025 06:24:13
Module end 'content'
Timing: Jan 31 2025 06:24:13
Script end

Main resources:

Total runtime1.1027 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 588.1328151.2109
Module start 'layout' 0.00500.0026 739.343836.6484
Module start 'content' 0.00751.0943 775.9922884.7578
Module end 'content' 1.10190.0008 1,660.75007.8516
Script end 1.1027  1,668.6016 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2833160.0002
Check MTime0.00130.1149160.0001
Mysql Total
Database connection0.00090.078410.0009
Mysqli_queries1.051695.3639520.0202
Looping result0.00050.0445500.0000
Template Total1.068396.920.5342
Template load0.00220.195920.0011
Template processing1.066196.683320.5331
Template load and register function0.00140.126710.0014
states
state_id_array0.00220.199210.0022
state_identifier_array0.00170.152720.0008
Override
Cache load0.00180.1647210.0001
Sytem overhead
Fetch class attribute can translate value0.00050.049110.0005
Fetch class attribute name0.00210.190030.0007
XML
Image XML parsing0.00200.178910.0020
class_abstraction
Instantiating content class attribute0.00000.001040.0000
General
dbfile0.00450.4070160.0003
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs