DaemonForums  

Go Back   DaemonForums > Other Operating Systems > Other BSD and UNIX/UNIX-like

Other BSD and UNIX/UNIX-like Any other flavour of BSD or UNIX that does not have a section of its own.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 7th July 2008
c0mrade's Avatar
c0mrade c0mrade is offline
Port Guard
 
Join Date: May 2008
Posts: 41
Thanked 0 Times in 0 Posts
Default Redirection

Hi all,

I just added panel.komentari.info to my /etc/named.conf and it works as it should it points to my ip. Now my questions is .. if I wanted to add redirection to that hostname what should I do? ex: when you type in your browser panel.komentari.info that it redirects you to -> google.com and not my default apache website .. thank you
Reply With Quote
  #2   (View Single Post)  
Old 11th July 2008
18Googol2's Avatar
18Googol2 18Googol2 is offline
Real Name: whoami
Spam Deminer
 
Join Date: Apr 2008
Location: pwd
Posts: 283
Thanked 20 Times in 18 Posts
Default

Quote:
Originally Posted by c0mrade View Post
Hi all,

I just added panel.komentari.info to my /etc/named.conf and it works as it should it points to my ip. Now my questions is .. if I wanted to add redirection to that hostname what should I do? ex: when you type in your browser panel.komentari.info that it redirects you to -> google.com and not my default apache website .. thank you
Put this line in your apache config file, or panel.komentari.info virtual host file:

Redirect / "http://google.com"
Reply With Quote
Reply

Tags
apache, redirect

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. The time now is 08:21 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick