Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Is Apache redirecting?

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Virtual hosts and SSL?  
Author Message
bdushok

External


Since: Jul 12, 2003
Posts: 2



(Msg. 1) Posted: Sat Jul 12, 2003 2:18 pm
Post subject: Is Apache redirecting?
Archived from groups: alt>apache>configuration (more info?)

I'm using a self compiled copy of Apache 1.3.27 with ApacheSSL 1.48,
SunONE ASP 3.6.1 (ChiliASP), and the Frontpage extensions v5. I had a
difficult time getting these modules all working together, especially
the Frontpage extensions.

I have several virtual hosts and am noticing no problems when
accessing a host via hostname, but with used with a directory or
filename a redirect seems to occur. For example, accessing
http://www.company.com and clicking links in the site causes no
redirects. Accessing http://www.company.com/directory redirects to
http://192.168.1.5/directory. This isn't a problem inhouse, but when
accessed externally this private IP becomes a problem. DNS resolves
to the proper public IP externally, so using www.company.com/directory
would be fine without the redirect.

My virtual hosts are setup as follows:
<VirtualHost 192.168.1.5:80>
Port 80
SSLDisable
ServerName 192.168.1.5
DocumentRoot /www/site5
ErrorLog logs/site5-errors
TransferLog logs/site5-access
</VirtualHost>

I have listen directives for each of my virtual hosts, each using the
hostname and port (i.e. Listen www.company.com:80).

I think Apache is redirecting because I'm including the IP in the
VirtualHost (or possibly ServerName) directives. If I attempt to use
a hostname in these directives I receieve a segmentation fault when
the server starts. When building the server I noticed this didn't
happen if I didn't use Frontpage extensions.

Does anyone know why Apache is redirecting? Can I disable the
redirects?

Thanks,
Bob

 >> Stay informed about: Is Apache redirecting? 
Back to top
Login to vote
davide

External


Since: Jul 07, 2003
Posts: 44



(Msg. 2) Posted: Sat Jul 12, 2003 9:37 pm
Post subject: Re: Is Apache redirecting? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Bob <bdushok DeleteThis @luzerne.edu> wrote:
 > Accessing <a style='text-decoration: underline;' href="http://www.company.com/directory" target="_blank">http://www.company.com/directory</a> redirects to
<font color=purple> > <a style='text-decoration: underline;' href="http://192.168.1.5/directory.</font" target="_blank">http://192.168.1.5/directory.</font</a>>

 > My virtual hosts are setup as follows:
 > <VirtualHost 192.168.1.5:80>

Don't do this. Use

NameVirtualHost *
<VirtualHost *:80>
  ...

 > ServerName 192.168.1.5

Doh! This is why he get the wrong name. Use ServerName <a style='text-decoration: underline;' href="http://www.company.com" target="_blank">www.company.com</a>
instead!

 > I have listen directives for each of my virtual hosts

That's useless.

If you keep having trouble with the FP extensions, you'll have to decide
if those extensions are worth the assle or not. Personally, I decided
that they aren't.

Davide<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Is Apache redirecting? 
Back to top
Login to vote
bdushok

External


Since: Jul 12, 2003
Posts: 2



(Msg. 3) Posted: Mon Jul 14, 2003 1:27 pm
Post subject: Re: Is Apache redirecting? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

David,
Thanks for the reply.

 > Don't do this. Use
 >
 > NameVirtualHost *
 > <VirtualHost *:80>
  > ...
 >

Thanks! I'll make this change.

  > > ServerName 192.168.1.5
 >
<font color=purple> > Doh! This is why he get the wrong name. Use ServerName <a style='text-decoration: underline;' href="http://www.company.com</font" target="_blank">www.company.com</font</a>>
 > instead!

Actually, I want to use the hostname but can't. I receive a
segmentation fault whenever I start Apache with a hostname in the
ServerName directive. I've done this for years without problems, but
in my most recent build I'm seeing this problem.

As I mentioned, I'm using ApacheSSL, SunOne ASP, and the Frontpage
extensions. If I build from the same source but without the FP
extensions everything works well. We only have a few people using
Frontpage. I'll either move them to another server or convince them
Dreamweaver is better Smile LOL

 > If you keep having trouble with the FP extensions, you'll have to decide
 > if those extensions are worth the assle or not. Personally, I decided
 > that they aren't.

I also feel they aren't worth the hassle. I'm getting pressure to use
them from further up in our administration Sad

Bob<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Is Apache redirecting? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Apache Cluster - Hiya all... Looking for some good how-to's, docs on the proper way to build a website with clustered/load-balanced apache servers. There's a lot of info out there and I'm not sure if one is better than the other. Could anyone recommend "industry....

ssl apache password - Hi ,I've Configured ssl on apache creating my own X509 certificate . my question is that when i reinitiate server it asks me certificate's password . I want to reinitiate server with cron daemon but it not works cause of this password . Any ideas ?...

problem with apache - Hi I have installed apache with mysql and php and I have the follow problem: [Fri Jul 11 10:21:31 2003] [alert] httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName [Fri Jul 11 10:21:31 2003] [crit]..

Proxy: can apache do this ? - Hi, I have an SuSE Linux box running apache 1.3.37, as supplied with SuSE. It is setup for both http and https, this works fine, and it is accessable to the internet in general. What I want to do it to have it act as a proxy re-director to enable me...

How can I run Apache as a service in XP? - How can I run Apache as a service in Windows XP Pro? I looked on the apache.org web site and found out how to do so in NT and 2000, but nothing on XP? Perhaps as a side not when I issue the command: apache -k -n "Apache2" -f..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]