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

Go Back   LiteSpeed Support Forums > External Applications > Apache Migration/Compatibility > Apache working with Litespeed?

Reply
 
Thread Tools Display Modes
  #21  
Old 12-31-2006, 08:57 AM
surfman surfman is offline
Member
 
Join Date: Dec 2006
Posts: 27
removing "NameVirtualHost my.ip.addre.ss:78" still does not help.

My concern is if the problem is like what you said:

Quote:
Originally Posted by mistwang View Post
The problem probably is because LSWS send Apache Host header with "www.mydomain.com", but Apache only like "www.mydomain.com:78".
why it did work for several hours, just like what I mentioned at post #16?

May be, Is there anyway to make sure LSWS sends Apache Host header with "www.mydomain.com:78" instead of "www.mydomain.com:78"? Thanks.
Reply With Quote
  #22  
Old 12-31-2006, 09:15 AM
surfman surfman is offline
Member
 
Join Date: Dec 2006
Posts: 27
I checked the apache error log, found all shtml files were sent to be like these:

PHP Code:
[Sat Dec 30 09:52:27 2006] [error] [client 127.0.0.1File does not exist: /usr/local/apache/htdocs/news/localnews/1475.shtml
[Sat Dec 30 09:52:27 2006] [error] [client 127.0.0.1File does not exist: /usr/local/apache/htdocs/404.shtml
[Sat Dec 30 09:52:29 2006] [error] [client 127.0.0.1File does not exist: /usr/local/apache/htdocs/news/localnews/index-13.shtml
[Sat Dec 30 09:52:29 2006] [error] [client 127.0.0.1File does not exist: /usr/local/apache/htdocs/404.shtml 
all shtml files were sent to:

/usr/local/apache/htdocs/news/localnews/1475.shtml

rather than

/home/myusername/public_html/localnews/1475.shtml

all my shtml pages are stored at folder

/home/myusername/public_html

NOT

/usr/local/apache/htdocs

I guess that's why http://www.mydomain.com is not working while http://www.mydomain.com:78 is working.

I checked with apache settings,

<VirtualHost my.ip.addre.ss>
ServerAlias mydomain.net
ServerAdmin webmaster@mydomain.net
DocumentRoot /home/myusername/public_html
BytesLog domlogs/mydomain.net-bytes_log
ServerName www.mydomain.net

User myusername
Group myusername
CustomLog /usr/local/apache/domlogs/mydomain.net combined
ScriptAlias /cgi-bin/ /home/myusername/public_html/cgi-bin/
</VirtualHost>


the red line for my DocumentRoot is correct. why apache still looks for shtml at the folder /usr/local/apache/htdocs ?

how can I correct this issue? thanks.

Last edited by surfman; 12-31-2006 at 09:20 AM..
Reply With Quote
  #23  
Old 01-01-2007, 12:24 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Quote:
Originally Posted by surfman View Post
why it did work for several hours, just like what I mentioned at post #16?

May be, Is there anyway to make sure LSWS sends Apache Host header with "www.mydomain.com:78" instead of "www.mydomain.com:78"? Thanks.
I don't know what make it work for serval hours, what you have done to apache configuration during the few hours?

Let's see what we can do with the Host header.

Quote:
why apache still looks for shtml at the folder /usr/local/apache/htdocs ?

how can I correct this issue?
That's because for some reason apache serve http://www.mydomain.com with the default vhost, serve http://www.mydomain.com:78 with the vhost you defined.

Looks like the best way to fix it is to change the host header by appending ":78" to the domain name in LSWS.
Reply With Quote
  #24  
Old 01-02-2007, 09:45 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
OK, I find the cure.
You need to change "Port 80" to "Port 78" in your httpd.conf.

Last edited by mistwang; 01-02-2007 at 09:52 AM..
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 04:06 AM.



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