404 - Cannot find a matching VHost

25 views
Skip to first unread message

Nenad C

unread,
Apr 5, 2018, 3:44:34 AM4/5/18
to openlitespee...@googlegroups.com
Hi everyone !
don't know if this is the right group...
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 on OLS 1.4.30, I've created the listener, virtual host and mapped virtual host to listener.



virtualhost architech {
  vhRoot                  $SERVER_ROOT/wordpress/
  configFile              $SERVER_ROOT/conf/vhosts/$VH_NAME/vhconf.conf
  allowSymbolLink         1
  enableScript            1
  restrained              0
}


listener:

listener web {
  address                 *:80
  secure                  0
  map                     architech *.architech.local
}

vhconf:

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 open http://architech.local i get 404 error:

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



George Wang

unread,
Apr 5, 2018, 9:17:22 AM4/5/18
to openlitespee...@googlegroups.com
Hi,

You can join the forum http://www.openlitespeed.com/ for this type of end-user question.
maybe the domain "architech *.architech.local" is mapped to IPv6 address, try listen on IPv6 port
[::]:80

Best regards,
George
--
You received this message because you are subscribed to the Google Groups "OpenLiteSpeed Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openlitespeed-deve...@googlegroups.com.
To post to this group, send email to openlitespee...@googlegroups.com.
Visit this group at https://groups.google.com/group/openlitespeed-development.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages