404 - Cannot find a matching VHost

#1
Hi,


I'm pretty new to OLS - and have run into what's possibly a rookie mistake, but can't seem to get around it...
I'm trying to setup Wordpress virtual host, I've created the listener, virtual host and mapped virtual host to listener.

virtual host:
Code:
virtualhost architech {
  vhRoot                  $SERVER_ROOT/wordpress/
  configFile              $SERVER_ROOT/conf/vhosts/$VH_NAME/vhconf.conf
  allowSymbolLink         1
  enableScript            1
  restrained              0
}
listener :
Code:
listener web {
  address                 *:80
  secure                  0
  map                     architech *.architech.local
}
vhconf :
Code:
docRoot                   $VH_ROOT/htdocs/
adminEmails               info@architech.hr
enableGzip                1

errorlog $VH_ROOT/logs/architech_access.log {
  useServer               0
  logLevel                DEBUG
  rollingSize             10M
}

accesslog $VH_ROOT/logs/architech_access.log {
  useServer               0
  logHeaders              7
  rollingSize             10M
  keepDays                7
}

index  {
  useServer               0
  indexFiles              index.php
}

scripthandler  {
  add                     lsapi:lsphp php
}

extprocessor Architech SIPA Portal {
  type                    lsapi
  address                 UDS://tmp/lshttpd/php7.sock
  maxConns                5
  initTimeout             60
  retryTimeout            5
  respBuffer              0
  autoStart               1
  instances               5
  memSoftLimit            2047M
  memHardLimit            2047M
  procSoftLimit           400
  procHardLimit           500
}
rewrite  {
  enable                  1
  logLevel                9
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

}
When I try to open http://architech.local I het 404 error
server error.log

Code:
2018-04-05 09:35:30.584902 [DEBUG] [*:80] 0 connections accepted!
2018-04-05 09:35:30.584921 [DEBUG] Failed to lookup [192.168.8.104]
2018-04-05 09:35:30.584970 [DEBUG] [*:80] New connection from 192.168.8.104:52734.
2018-04-05 09:35:30.584992 [DEBUG] [192.168.8.104:52734] concurrent conn: 1
2018-04-05 09:35:30.585000 [DEBUG] [192.168.8.104:52734] NtwkIOLink::handleEvents() events=1!
2018-04-05 09:35:30.585007 [DEBUG] [192.168.8.104:52734] HttpSession::onReadEx(), state: 1!
2018-04-05 09:35:30.585013 [DEBUG] [192.168.8.104:52734] readToHeaderBuf().
2018-04-05 09:35:30.585024 [DEBUG] [192.168.8.104:52734] Read from client: 532
2018-04-05 09:35:30.585034 [DEBUG] [192.168.8.104:52734] Read 532 bytes to header buffer.
2018-04-05 09:35:30.585076 [DEBUG] [192.168.8.104:52734] processHeader() returned 0, header state: 3.
2018-04-05 09:35:30.585087 [DEBUG] [192.168.8.104:52734] Cannot find a matching VHost.
2018-04-05 09:35:30.585094 [DEBUG] [192.168.8.104:52734] HttpSession::sendHttpError(), code = '404 Not Found
'.
2018-04-05 09:35:30.585104 [DEBUG] [192.168.8.104:52734] setupDynRespBodyBuf()
2018-04-05 09:35:30.585111 [DEBUG] [192.168.8.104:52734] Need to allocate response body buffer.
2018-04-05 09:35:30.585161 [DEBUG] [192.168.8.104:52734] GZIP the response body in the buffer.
2018-04-05 09:35:30.585232 [DEBUG] [192.168.8.104:52734] setupGzipBuf() begin GZIP stream.
2018-04-05 09:35:30.585243 [DEBUG] [192.168.8.104:52734] Response header finished!
2018-04-05 09:35:30.585307 [DEBUG] [192.168.8.104:52734] endResponse( 1 )
2018-04-05 09:35:30.585317 [DEBUG] [192.168.8.104:52734] endResponseInternal()
2018-04-05 09:35:30.585390 [DEBUG] [192.168.8.104:52734] endResponse() end GZIP stream.
2018-04-05 09:35:30.585398 [DEBUG] [192.168.8.104:52734] HttpSession::flush()!
2018-04-05 09:35:30.585405 [DEBUG] [192.168.8.104:52734] sendRespHeaders()
2018-04-05 09:35:30.585472 [DEBUG] [192.168.8.104:52734] Written to client: 917
2018-04-05 09:35:30.585483 [DEBUG] [192.168.8.104:52734] writeRespBody() len = 655, returned 655.
2018-04-05 09:35:30.585490 [DEBUG] [192.168.8.104:52734] flushBody() return 0
2018-04-05 09:35:30.585496 [DEBUG] [192.168.8.104:52734] NtwkIOLink::flush...
2018-04-05 09:35:30.585502 [DEBUG] [192.168.8.104:52734] Set the HSS_COMPLETE flag.
2018-04-05 09:35:30.585510 [DEBUG] [EvtcbQue:getNodeObj] Obj=0x10260b0 Session= (nil) Param=(nil)
2018-04-05 09:35:30.585516 [DEBUG] [EvtcbQue:schedule() nowait] Obj=0x10260b0 Session= 0x104c268 Param=(nil)
2018-04-05 09:35:30.585527 [DEBUG] [EvtcbQue:run(0x104c268)]
2018-04-05 09:35:30.585550 [DEBUG] [EvtcbQue:run()] Obj=0x10260b0 Session= 0x104c268 Param=(nil)
2018-04-05 09:35:30.585555 [DEBUG] [192.168.8.104:52734] HttpSession::nextRequest()!
2018-04-05 09:35:30.585589 [DEBUG] [192.168.8.104:52734] NtwkIOLink::flush...
2018-04-05 09:35:30.585610 [DEBUG] [EvtcbQue:recycle()] Obj=0x10260b0 Session= 0x104c268 Param=(nil)
2018-04-05 09:35:30.585618 [DEBUG] [*:80] 1 connections accepted!
2018-04-05 09:35:35.502335 [DEBUG] [192.168.8.104:52734-1] Keep-alive timed out, close conn!
2018-04-05 09:35:35.502378 [DEBUG] [192.168.8.104:52734-1] Shutting down out-bound socket ...
2018-04-05 09:35:35.502423 [DEBUG] [192.168.8.104:52734-1] Available Connections: 2000, concurrent conn: 0.
2018-04-05 09:35:36.386514 [DEBUG] [192.168.8.104:52734-1] NtwkIOLink::handleEvents() events=17!
2018-04-05 09:35:36.386556 [DEBUG] [192.168.8.104:52734-1] Close socket ...
2018-04-05 09:35:36.386594 [DEBUG] [192.168.8.104:52734-1] HttpSession::recycle()
2018-04-05 09:35:36.386600 [DEBUG] [192.168.8.104:52734-1] Recycle NtwkIoLink
 
Top