Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Apache Redirect...

2 views
Skip to first unread message

John

unread,
Jan 26, 2004, 7:13:52 PM1/26/04
to

I need to redirect users from http://ifolder.abc.com/iFolder to simply
https://ifolder.abc.com

how do I redirect the page ? Apache 1.x on NW6.0


Joseph Moore [SysOp]

unread,
Jan 27, 2004, 12:53:35 AM1/27/04
to
John:

> how do I redirect the page ?
>

http://httpd.apache.org/docs/mod/mod_alias.html#redirect

Joe Moore
Novell Support Connection Volunteer Sysop
http://just.fdisk-it.com
for an e-book on NetWare Enterprise Web Server,
see http://www.caledonia.net/nesadmin.html


NO EMAIL PLEASE!!!!!

wibo.l...@hmg.nl

unread,
Jan 27, 2004, 6:44:13 AM1/27/04
to

Could you guys please for once NOT refer to a weblink? I must have seen
tons of weblinks about apache virtual host redirection, but I cannot get
it work!!! Not on 6.0 and not on 6.5

I want 2 things:

146.220.220.16/ipp -------> iprint.hmg.net

146.220.220.16/nps/Imanager.html -------------> imanager.hmg.net

I am so confused as to WHAT conf I should use, adminserv or httpd, and in
every example I see it is described diferently.

Could one of you please make me an example of the above servers?

Any help is highly appreciated

Wibo

Andy Thompson (SysOp)

unread,
Jan 27, 2004, 8:15:11 AM1/27/04
to
> Could you guys please for once NOT refer to a weblink? I must have seen
> tons of weblinks about apache virtual host redirection, but I cannot get
> it work!!! Not on 6.0 and not on 6.5
>
> I want 2 things:
>
> 146.220.220.16/ipp -------> iprint.hmg.net
>
> 146.220.220.16/nps/Imanager.html -------------> imanager.hmg.net
>

What have you tried?

Should be as simple as putting a

redirect /ipp iprint.hmg.net

on the 146.220.220.16 box

> I am so confused as to WHAT conf I should use, adminserv or httpd, and in
> every example I see it is described diferently.
>

Depends on what instance of apache you are running. If you are using
the default instance that ships with NW6, the config is done in the
adminserv.conf file. If you have your own installation running another
instance of apache, use whatever .conf file you have defined for that
installation... the name of the file is insignificant.

--

Andy Thompson
Novell Product Support Forum SysOp
(No email support, thanks.)

wibo.l...@hmg.nl

unread,
Jan 27, 2004, 8:37:12 AM1/27/04
to
I tried editing the httpd.conf file in the Apache2 dir. In some documents
I read that I must edit the httpd.conf in order to get what I want, but in
other TIDs it's the adminserv.conf.

I am fairly new in apache, but my guess is that this should be really
simple? I tried figuring out the apache docs at their site, but those are
a B*tch figuring out.

So where should I put this "redirect /ipp iprint.hmg.net" line?

TIA

Wibo

Andy Thompson (SysOp)

unread,
Jan 27, 2004, 11:56:34 AM1/27/04
to
wibo.l...@hmg.nl wrote:

> I tried editing the httpd.conf file in the Apache2 dir. In some documents
> I read that I must edit the httpd.conf in order to get what I want, but in
> other TIDs it's the adminserv.conf.
>
> I am fairly new in apache, but my guess is that this should be really
> simple? I tried figuring out the apache docs at their site, but those are
> a B*tch figuring out.
>
> So where should I put this "redirect /ipp iprint.hmg.net" line?

Again, it depends on what instance of apache you are using. How is
apache being started on your server? The command line will specify the
.conf file being used (apache -f path_to_conf_file). If it's the
default instance, it is probably the adminserv.conf file.

If there is no command line option, it will use the default httpd.conf file.

I'm guessing that you need to put it in the adminserv.conf file.

wibo.l...@hmg.nl

unread,
Jan 28, 2004, 7:25:00 AM1/28/04
to
I really do not have a clue what you mean by Apache Instance. It's just a
Netware 6.5 with SP1.

My guess is that I have to edit the adminserv.conf too, but exactly where
do I put the "redirect /ipp iprint.hmg.net" line?

Also, the server name is HVSIPS01(.hmg.net). That name I put already in
the DNS, but do I have to put the other names (iprint.hmg.net and
imanager.hmg.net) in the DNS as well?


> wibo.l...@hmg.nl wrote:
>
> > I tried editing the httpd.conf file in the Apache2 dir. In some
documents
> > I read that I must edit the httpd.conf in order to get what I want,
but in
> > other TIDs it's the adminserv.conf.
> >
> > I am fairly new in apache, but my guess is that this should be really
> > simple? I tried figuring out the apache docs at their site, but those
are
> > a B*tch figuring out.
> >
> > So where should I put this "redirect /ipp iprint.hmg.net" line?
>
> Again, it depends on what instance of apache you are using. How is
> apache being started on your server? The command line will specify the

> ..conf file being used (apache -f path_to_conf_file). If it's the

Andy Thompson (SysOp)

unread,
Jan 28, 2004, 8:22:01 AM1/28/04
to
> My guess is that I have to edit the adminserv.conf too, but exactly where
> do I put the "redirect /ipp iprint.hmg.net" line?
>

Inside the <virtualhost> you want the redirect to occur on.

> Also, the server name is HVSIPS01(.hmg.net). That name I put already in
> the DNS, but do I have to put the other names (iprint.hmg.net and
> imanager.hmg.net) in the DNS as well?

Yes.

Andy Thompson (SysOp)

unread,
Jan 28, 2004, 1:29:02 PM1/28/04
to
John wrote:

> I have used the redirect, and is working but doesn't solve my problem.
>
> if i goto ifolder.abc.com, i get the default apache web site
>
> if i goto ifolder.abc.com/iFolder, i get the ifolder site.
>

What redirect do you have in place? Sounds like it isn't working.

> how do i simply put in "ifolder.abc.com" and get to the ifolder screen? do I
> need to change the index.html to have a rediect in there? how do I do this,
> does anyknow know the html code?
>

You should be able to put a refresh tag in the index

<meta http-equiv='Refresh' content='0'; url=/iFolder'>

John

unread,
Jan 28, 2004, 1:19:04 PM1/28/04
to
I have used the redirect, and is working but doesn't solve my problem.

if i goto ifolder.abc.com, i get the default apache web site

if i goto ifolder.abc.com/iFolder, i get the ifolder site.

how do i simply put in "ifolder.abc.com" and get to the ifolder screen? do I


need to change the index.html to have a rediect in there? how do I do this,
does anyknow know the html code?

"Andy Thompson (SysOp)" <00...@myrealbox.com> wrote in message
news:ZHORb.1612$Wh....@prv-forum2.provo.novell.com...

John

unread,
Jan 28, 2004, 2:17:10 PM1/28/04
to
I just create an index.html with this info and it works like a charm:

<html>

<head>

<meta http-equiv="Refresh" content="1;URL=http://www.cnn.com">

<script>window.location = http://www.cnn.com;</script>

</head>

<body>

If you are not redirected, <a href="http://www.cnn.com">click here</a>

</body>

</html>

"Andy Thompson (SysOp)" <00...@myrealbox.com> wrote in message

news:ObTRb.1984$Wh....@prv-forum2.provo.novell.com...

wibo.l...@hmg.nl

unread,
Jan 29, 2004, 3:35:08 AM1/29/04
to
Andy,

Despite your efforts and input (thanx!!!) I still do not get it.

If I look at the adminserv config file, I get the feeling that I have to
create a Virtual Host thingy within my adminserv.conf file, in order to
get this to work.

And isn't Redirect used only to shorten the URLs? From
servername/bla/bla/bla/bla/iManager.html REDIRECT to
servername/iManager.html?

Can you point me to a (working) sample config file?

I also saw that I must put the Redirect lines within a virtual host
segment within the adminserv.conf. Where exactly?

TIA

W

John

unread,
Jan 29, 2004, 1:30:43 PM1/29/04
to
I create a simple index.html file with the following lines...for anyone that
goes to "ifolder.abc.com", it gets redirected to
"https://ifolder.abc.com/iFolder"...save the user by rememebring the secure
site and the /iFolder link.

<html>

<head>

<meta http-equiv="Refresh" content="1;URL=http://www.cnn.com">

<script>window.location = http://www.cnn.com;</script>

</head>

<body>

If you are not redirected, <a href="http://www.cnn.com">click here</a>

</body>

</html>

<wibo.l...@hmg.nl> wrote in message
news:0B3Sb.2571$Wh....@prv-forum2.provo.novell.com...

Joseph Moore [SysOp]

unread,
Jan 30, 2004, 8:13:02 AM1/30/04
to
John:

> [script]window.location = http://www.cnn.com;[/script]
>

wanna repost and change the < and > around the script tags to something
else - our bot does not allow scripts to be posted :)

wibo.l...@hmg.nl

unread,
Feb 2, 2004, 3:20:29 AM2/2/04
to
Hi all,

I have given up on this. I cannot get it to work, and whatever I do, the
rest of the functionality seems to suffer from my attempts as well.

I think you have to be a crack expert in Apache to get this done, because
it really is not that simple as people might say.

Thanx anyway for the help.

Wibo @ HMG IT / Systems Engineering

wibo.l...@hmg.nl

unread,
Feb 2, 2004, 4:43:38 AM2/2/04
to
Hi all,

I have given up on this. I cannot get it to work, and whatever I do, the
rest of the functionality seems to suffer from my attempts as well.

I think you have to be a crack expert in Apache to get this done, because
it really is not that simple as people might say.

Thanx anyway for the help.

Wibo @ HMG IT / Systems Engineering

Andy Thompson (SysOp)

unread,
Feb 2, 2004, 9:38:26 AM2/2/04
to
> I have given up on this. I cannot get it to work, and whatever I do, the
> rest of the functionality seems to suffer from my attempts as well.
>
> I think you have to be a crack expert in Apache to get this done, because
> it really is not that simple as people might say.

At the bottom of your adminserv.conf file, add

<VirtualHost _default_:80>
redirect <source> <target>
</virtualhost>

restart apache (nvxadmdn, nvxadmup) and see what it does.

wib...@hmg.nl

unread,
Feb 3, 2004, 4:42:46 AM2/3/04
to

Ok Andy,

This is what I did. I took the adminserv.conf and added this line that you
suggested earlier:

redirect /ipp http://iprint.hmg.net

I restarted Apache with admsrvdn and ap2webdn and then ap2webup and
admsrvup

i typed in iprint.hmg.net in my ie web browser, and nothing happens

W

Andy Thompson (NSC Sysop)

unread,
Feb 3, 2004, 6:46:59 AM2/3/04
to
wib...@hmg.nl wrote:
> Ok Andy,
>
> This is what I did. I took the adminserv.conf and added this line that you
> suggested earlier:
>
> redirect /ipp http://iprint.hmg.net
>
> I restarted Apache with admsrvdn and ap2webdn and then ap2webup and
> admsrvup
>

Where did you add the redirect? Did you add the _default_:80 virtual
host? note that is "_"default"_" (without the quotes obviously, just
added if your newsreader parses that as an underline).

-andy

0 new messages