LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-08-2003, 06:51 PM   #1
marvc
Member
 
Registered: Aug 2002
Location: GA
Posts: 59

Rep: Reputation: 15
Question ISA, websites on apache and linux server, publishing...


Apologizies in advance as this may be either an OT, the wrong forum, or the wrong question to ask as I'm not sure if there are any ISA gurus monitoring the forum but here goes. First here's my story.
I just removed my linksys router and added ISA on my home network. I currently have 3 websites on my linux server that I need to get published and accessible again. The websites in question are:
nubiint
nusolutions and
newundertakings.
I host this server at my home location on a dynamic dsl connection so all of these sites are/were set up as virtual hosts on 1 internal IP. From what I've been told ISA is unable to recognise any requests for the sites so I need to assign each of them to a different port. My question is how is this done? I'm not sure if I modify the apache httpd.conf file or something in linux. Could someone provide me some direction on how to do this?
To further elaborate I need to publish each site in isa on different port. I then need to make sure that the sites are assigned to the new ports on the linux server. Hope this doesn't come accross as confusing because I am confused.
thanks
Any responses are appreciated.
 
Old 07-08-2003, 07:09 PM   #2
jerky
Member
 
Registered: Jul 2003
Distribution: RH 7.3 , RH9,RHEL,FC
Posts: 38

Rep: Reputation: 15
You should be able to set these as virtual hosts in your httpd.conf , set each as there individual servername's and there document roots,

<VirtualHost *>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /www/docs/dummy-host.example.com
ServerName dummy-host.example.com
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>

Do that for each of your websites, or you could set one to default, and teh other two to virtual hosts. they should all run on port 80 without any problem.

it should re-direct by request of name to proper site
 
Old 07-08-2003, 07:49 PM   #3
marvc
Member
 
Registered: Aug 2002
Location: GA
Posts: 59

Original Poster
Rep: Reputation: 15
Cool. That's the way I currently have it in that my virtual hosts are pointing to 80 like so:
<VirtualHost 192.168.x.x:80>
ServerAdmin
ServerName
ServerAlias
DocumentRoot
</VirtualHost>

So changing this for my other two sites would be:
<VirtualHost 192.168.x.x:81>
ServerAdmin
ServerName
ServerAlias
DocumentRoot
</VirtualHost>

<VirtualHost 192.168.x.x:82>
ServerAdmin
ServerName
ServerAlias
DocumentRoot
</VirtualHost>

Is that it? I think I've fried a few circuits somewhere while installing ISA.

thanks
 
Old 07-09-2003, 03:51 PM   #4
marvc
Member
 
Registered: Aug 2002
Location: GA
Posts: 59

Original Poster
Rep: Reputation: 15
hmmm...no response. How about this:
Is there some way to create a host header in linux like it is in Microsoft? I'm hoping this would allow me to get my 3 sites published thru ISA on a single interface.
 
Old 07-10-2003, 06:12 PM   #5
jerky
Member
 
Registered: Jul 2003
Distribution: RH 7.3 , RH9,RHEL,FC
Posts: 38

Rep: Reputation: 15
you dont need to specify the ports
the first line turns on virtual hosting by name


NameVirtualHost *

<VirtualHost * >
ServerAdmin jerky@jerky.dhs.org
DocumentRoot /var/www/html
ServerName jerky.dhs.org
Errorlog logs/jerky.dhs.org-error_log
CustomLog logs/jerky.dhs.org-access_log common
</VirtualHost>

<VirtualHost * >
ServerAdmin craig@blah.com
DocumentRoot /home/craig/public_html/mail
ServerName mail.mcfetridge.com
ErrorLog logs/mail.mcfetridge.com-error_log
CustomLog logs/mail.mcfetridge.com-access_log common
</VirtualHost>

by defining your servername within the virtualhost will tell it where to go for each request, therefor in this example
jerky.dhs.org will goto the /var/www/html , and
mail.mcfetridge.com will goto /home/craig/public_html/mail

if this is what you want to do of course

essentially you are hosting 2 named servers, on one actual server, of course for you, you would need 3
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Website publishing in Apache j_kamal Linux - Newbie 3 11-11-2005 02:19 AM
Giving individual users editing rights for websites using Apache Server aakash Linux - General 1 05-26-2005 02:41 PM
a forum to discuss apache / linux hosting websites? jago25_98 General 0 11-18-2003 02:47 PM
Isa server and Linux Adoubt Linux - Software 0 09-03-2003 10:09 AM
Websites and their mail server using linux elainepearl Linux - General 1 07-23-2003 03:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 08:57 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