Virtual hosts missing?

MentaL

Well-Known Member
#1
Hi,

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.



Regards.
 

MentaL

Well-Known Member
#3
Hi

It's already being read,

Load Apache Configuration = yes
Auto Reload On Changes = Use Apache binary wrapper
Apache Binary Path = /usr/local/apache/bin/httpd
Apache Configuration File = /usr/local/apache/conf/httpd.conf
Example from httpd.conf (edited ip and domain)

<VirtualHost 127.0.0.1:80>
ServerName forum.domain.com
ServerAlias www.forum.domain.com
DocumentRoot /home/domain/public_html/forum
ServerAdmin webmaster@forum.domain.com
UseCanonicalName On
CustomLog /usr/local/apache/domlogs/forum.domain.com combined
CustomLog /usr/local/apache/domlogs/forum.domain.com-bytes_log "%{%s}t %I .\n%{%s}t %O ."
## User domain # Needed for Cpanel::ApacheConf
<IfModule mod_suphp.c>
suPHP_UserGroup domain domain
</IfModule>
<IfModule concurrent_php.c>
php4_admin_value open_basedir "/home/domain:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"
php5_admin_value open_basedir "/home/domain:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
<IfModule !concurrent_php.c>
<IfModule mod_php4.c>
php_admin_value open_basedir "/home/domain:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"
</IfModule>
<IfModule mod_php5.c>
php_admin_value open_basedir "/home/domain:/usr/lib/php:/usr/local/lib/php:/tmp"
</IfModule>
<IfModule sapi_apache2.c>
php_admin_value open_basedir "/home/domain:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"
</IfModule>
</IfModule>
<IfModule !mod_disable_suexec.c>
SuexecUserGroup domain domain
</IfModule>


# To customize this VirtualHost use an include file at the following location
# Include "/usr/local/apache/conf/userdata/std/2/domain/forum.domain.com/*.conf"

</VirtualHost>
Regards.
 

webizen

Well-Known Member
#4
No need to import/convert into native LS vhost.

http://www.litespeedtech.com/suppor...litespeed:cache#how_to_enable_litespeed_cache


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.
 

MentaL

Well-Known Member
#5
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 ).
 

webizen

Well-Known Member
#6
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.
 

webizen

Well-Known Member
#10
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.

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..
 
Top