LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > Virtual hosts missing?

Reply
 
Thread Tools Display Modes
  #1  
Old 07-29-2011, 09:15 AM
MentaL MentaL is offline
Senior Member
 
Join Date: Nov 2010
Posts: 57
Default Virtual hosts missing?

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.
Reply With Quote
  #2  
Old 07-29-2011, 09:17 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
Just let LSWS read httpd.conf
http://www.litespeedtech.com/docs/we...loadApacheConf
Reply With Quote
  #3  
Old 07-29-2011, 09:30 AM
MentaL MentaL is offline
Senior Member
 
Join Date: Nov 2010
Posts: 57
Hi

It's already being read,

Quote:

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)

Quote:
<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.
Reply With Quote
  #4  
Old 07-29-2011, 10:06 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
No need to import/convert into native LS vhost.

http://www.litespeedtech.com/support...itespeed_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.
Reply With Quote
  #5  
Old 07-29-2011, 10:20 AM
MentaL MentaL is offline
Senior Member
 
Join Date: Nov 2010
Posts: 57
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 ).
Reply With Quote
  #6  
Old 07-29-2011, 11:21 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
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.
Reply With Quote
  #7  
Old 07-31-2011, 01:21 PM
MentaL MentaL is offline
Senior Member
 
Join Date: Nov 2010
Posts: 57
I would rather have it all running through Litespeed though.

Regards.
Reply With Quote
  #8  
Old 08-01-2011, 11:50 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
there is no automate way to convert vhost from apache httpd.conf into lsws vhost.
Reply With Quote
  #9  
Old 08-18-2011, 10:38 AM
richel099 richel099 is offline
New Member
 
Join Date: Aug 2011
Posts: 1
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..
Reply With Quote
  #10  
Old 08-18-2011, 11:10 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
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.

Quote:
Originally Posted by richel099 View Post
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..
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:25 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.