Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 3rd March 2010, 21:08
mnzava mnzava is offline
Member
 
Join Date: Aug 2007
Location: Dar es Salaam, Tanzania
Posts: 48
Thanks: 8
Thanked 0 Times in 0 Posts
Default how to redirectdefault webpage in ubuntu to one website in ispconfig

dear all,
i want to redirect default page in ubuntu when you access using ip address to one website in ispconfig. such that instead of showing 'IT WORKS' it should show the website that i want to be shown.
any help?

thanks in advance.
Reply With Quote
Sponsored Links
  #2  
Old 4th March 2010, 10:58
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,678
Thanks: 819
Thanked 5,318 Times in 4,171 Posts
Default

You can do redirects on a apche webserver in several ways:

1) Apache rewrite:

http://httpd.apache.org/docs/2.0/misc/rewriteguide.html

2) A redirect in the html header if a index page.

3) By using a redirect in a script, e.g.

index.php

Code:
<?php
header('Location: http://www.othersite.com/');
exit;
?>
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 5th March 2010, 09:08
mnzava mnzava is offline
Member
 
Join Date: Aug 2007
Location: Dar es Salaam, Tanzania
Posts: 48
Thanks: 8
Thanked 0 Times in 0 Posts
Default

Thank you very much Till.
among those option listed. which is the best to use?
i believe each one must have it's prons and cons.
someone also mentioned to me about using .htaccess file.
can you advice the best option?

thanks and regards.
Reply With Quote
  #4  
Old 6th March 2010, 11:52
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
 
Default

I'd use the first option (which can also be achieved by using an .htaccess file).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig 3.0.1 released till General 36 29th March 2009 14:30
How to update/upgrade Ubuntu with ISPconfig installed? rmccain Installation/Configuration 3 24th March 2009 21:01
ISPConfig 3.0.0.6 Beta released till General 38 21st September 2008 19:15
ISPConfig 3.0.0.5 Beta Released till General 77 23rd July 2008 12:14
Ubuntu 7.04 with Ispconfig - The URL is not reachable! shellNewbie HOWTO-Related Questions 7 5th September 2007 14:14


All times are GMT +2. The time now is 22:56.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.