LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-29-2007, 02:12 PM   #1
neocontrol
Member
 
Registered: Jul 2005
Posts: 273

Rep: Reputation: 31
nagios + virtual hosts = How to keep it to one domain


I've installed nagios.

I have it where it's up and running but the typical installation has you setup some aliases. SO when you type domain.com/nagios it goes to the proper page.

How do I set this up so only one domain can access this site? Currently I can access this thru any of my domains, just by putting /nagios at the end of the name.

As well, I have 3 domains on this site, all ran by virtual hosts. Ideally I'd like to be able to setup another virtual host, so I can do something like nagios.domain.com

Thanks for the help.
 
Old 05-29-2007, 04:12 PM   #2
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Look at mod_rewrite and put in a redirect rule. There are tons of documention how to do this simple redirect on the web. Let us know if you run into trouble.

-twantrd
 
Old 05-30-2007, 01:33 AM   #3
mastrboy
Member
 
Registered: Aug 2005
Distribution: Debian, OpenBSD, PFsense
Posts: 73

Rep: Reputation: 15
if you are new to mod_rewrite, this will surely help you out: http://www.ilovejackdaniels.com/mod_...heat_sheet.png
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagios v.2.9 - hosts/hostgroups not recognized??? arktik Linux - Networking 2 05-25-2007 07:45 PM
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 06:29 AM
Apache2 Name-based Virtual Hosts Problem with .org domain! phoenix09 Linux - Software 18 09-19-2006 04:23 AM
what would make ever virtual domain name resolve to one domain name on my system kuplo Linux - Newbie 1 11-14-2005 06:57 PM
after chnaging the ipaddress of nagios server new hosts adding error sridhar11 Linux - Software 0 10-26-2005 01:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration