Virtual hosts missing?

Discussion in 'General' started by MentaL, Jul 29, 2011.

  1. MentaL

    MentaL Well-Known Member


    I'm looking to install LS cache but I have no virtual hosts. How do I import them from httpd.conf? I also have no virtual templates either.


  2. mistwang

    mistwang LiteSpeed Staff

  3. MentaL

    MentaL Well-Known Member


    It's already being read,

    Example from httpd.conf (edited ip and domain)

  4. webizen

    webizen Well-Known Member

    No need to import/convert into native LS vhost.

    3. For imported Apache vhost: Cache can be turned on/off with “CacheEnable” , “CacheDisable” directives in Apache config file. Nothing needs to be done for the cache policy. It will assume the same default settings at LSWS Server level. Rewrite rules can be placed in httpd.conf or in-directory .htaccess file as shown in step 5 below. Note: Apache mod_cache directives CacheIgnoreCacheControl, CacheMaxExpire also can be used in the Apache config file as well as .htaccess to fine tune cache policy.
  5. MentaL

    MentaL Well-Known Member

    My httpd.conf has no cache options nor am I able to add the following (LSWS Web Admin Console→Virtual Hosts→mytest→Cache → Cache Policy ).
  6. webizen

    webizen Well-Known Member

    Apache directive "CacheEnable", "CacheDisable" can be manually added to .htaccess (preferred) or httpd.conf to control cache at vhost level. NO need to enable/edit cache policy at native LSWS vhost level. Native LSWS vhost has nothing to do with Apache vhost.
  7. MentaL

    MentaL Well-Known Member

    I would rather have it all running through Litespeed though.

  8. webizen

    webizen Well-Known Member

    there is no automate way to convert vhost from apache httpd.conf into lsws vhost.
  9. richel099

    richel099 New Member

    the post ,i putting reply,was found on google in the front page...... when i searched with key word find virtual hosts on a server
    i am glad to see some useful solutions......that i was searching ...
    thank you..
  10. webizen

    webizen Well-Known Member

    it goes by reverse IP lookup. the result will not be accurate for domains served by cdn/proxy (resolved to multiple IPs).

    this thread is talking about getting vhosts in apache httpd.conf imported into lsws. the tool you referring to does not apply.


Share This Page