how do I redirect the page ? Apache 1.x on NW6.0
> 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!!!!!
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
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.)
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
> 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.
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
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.
> 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'>
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...
<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...
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
<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...
> [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 :)
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
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
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.
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
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