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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 11th March 2008, 05:27
Superman859 Superman859 is offline
Junior Member
 
Join Date: Mar 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default CentOS4.6 Perfect Server Question

I followed the guide for CentOS4.6 server setup. I have a couple of questions, mostly related to networking aspects.

First, on page three it states 'do this to create the virtual interface' and provides the instructions. What exactly does this step do? Is it necessary? I tried to look up details regarding virtual interfaces but couldn't find anything that explained what was going on. The closest I got was it allows you to listen on multiple IP addresses, but this doesn't seem like a required step. I'm just not sure, as the guide didn't describe this part.

Other than that, my main question is how to access my server from elsewhere. It is a testing server and I am the only person that needs to access it. It's installed in a VM. Right now I gave it a static IP 192.168.0.50. VM is set to bridge, so it passes CentOS directly to my physical router. My host computer is 192.168.0.100, and I can open a browser on my host and type 192.168.0.50 and it brings up the Apache page for CentOS. Things seem ok.

Is there a way to configure it so I can type in something other than an IP to bring up that page? Ideally I would type in a URL as I would on any website, although I'm not sure if that is possible since I'm not sure how the host browser would know when to search the local network or when to look in DNS servers for the correct (live) server.

My main goal is to set up CentOS as a testing server for my live site. I could always browse it like 192.168.0.50/index.php I believe, and that should work. The only problem I'm having now is when I try that I get a 403 forbidden error. Happens for .html files as well. Strange, because it worked yesterday when I installed phpMyAdmin, but now I cannot access that either (same error). I'm not sure if I reverted to a snapshot I had before making some important changes, or if I changed something else. No idea.
Reply With Quote
Sponsored Links
  #2  
Old 12th March 2008, 19:03
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,565 Posts
 
Default

Quote:
Originally Posted by Superman859
First, on page three it states 'do this to create the virtual interface' and provides the instructions. What exactly does this step do? Is it necessary? I tried to look up details regarding virtual interfaces but couldn't find anything that explained what was going on. The closest I got was it allows you to listen on multiple IP addresses, but this doesn't seem like a required step. I'm just not sure, as the guide didn't describe this part.
This step is totally optional. It shows how to add additional IP addresses to a network interface if you need more than one IP address.

Quote:
Originally Posted by Superman859
Other than that, my main question is how to access my server from elsewhere. It is a testing server and I am the only person that needs to access it. It's installed in a VM. Right now I gave it a static IP 192.168.0.50. VM is set to bridge, so it passes CentOS directly to my physical router. My host computer is 192.168.0.100, and I can open a browser on my host and type 192.168.0.50 and it brings up the Apache page for CentOS. Things seem ok.

Is there a way to configure it so I can type in something other than an IP to bring up that page? Ideally I would type in a URL as I would on any website, although I'm not sure if that is possible since I'm not sure how the host browser would know when to search the local network or when to look in DNS servers for the correct (live) server.
You can get a hostname from dyndns.org and configure your router to update this hostname whenever your public IP changes. Then you must tell your router to forward all needed ports (e.g. 22, 25, 80, 110, ...) to your Linux server. You can then access your server from outside by using the dyndns address.
__________________
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
Statistic not working mzo Installation/Configuration 49 20th April 2011 12:19
Question about Server Secuirty Ganther Technical 2 13th December 2007 07:06
mail delivered in mbox patfee Installation/Configuration 8 11th December 2007 13:58
Problem with keeping Apache alive bobeq Server Operation 3 29th November 2007 16:11
server blocked/stopped by host Ovidiu Technical 11 14th February 2006 10:50


All times are GMT +2. The time now is 19:03.


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