LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-27-2004, 04:54 AM   #1
dramous
LQ Newbie
 
Registered: Sep 2004
Posts: 13

Rep: Reputation: 0
Apache Configuration


i am setting up my apache server, i am the main setting tab, i have server name, is this where i actually put my website (mydomain.com), if so where do i put the ip address that is associated with this (mydomain.com), or do i need to make a virtual host and assign the ip address there and the hostname. i am not clear on how to make this a one site server. please help!!!
Andre'
 
Old 09-27-2004, 05:00 AM   #2
bennethos
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: -- Slackware for servers -- Debian for desktops --
Posts: 124

Rep: Reputation: 16
You should have a look at the apache manual located on www.apache.org :

http://httpd.apache.org/docs/ version 1.3

http://httpd.apache.org/docs-2.0/ version 2.0



Could you explain us a bit clearer what you are trying to do

normally you will have to config the following file /etc/apache/httpd.conf

there you can put in the hostname of you webserver.

If you want it to be your webiste and really host it and make sure it's available on www level, you will have to config the A record of your domain, the nameserver will have to point to that fixed WAN ip you have , that's a bit more complicated ;-)

eg . :

root@Khufu:/home/admin# host -t any www.gigaspeeds.com
www.gigaspeeds.com A 193.121.85.197


here you see my dns servers are configged to point to 193.121.85.197 if people make a request to my web site.

keep us posted
 
Old 09-27-2004, 05:30 AM   #3
dramous
LQ Newbie
 
Registered: Sep 2004
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks, I will see if can explain my delimma, I went thru the apache configuration tool which changes the values in the httpd.conf to what setting i need for my server, correct!, but i dont understand if on the main tab of the configuration tool where it has basic setup in the field where it ask me to type in my server name, is this where i put my actual registered domain name and if so where do i key in my static ip address, i understand the procedure concerning my dns server entering the values to link the ip to the domain name, but how is this done on my server. or do i go to the virtual hosts tab and enter both the ip address and the hostname here. I might be making this more complicated than it really is.

list below is exactly what i am try to do:

the nameserver will have to point to that fixed WAN ip you have , that's a bit more complicated ;-)


please guide me on the right path

Last edited by dramous; 09-27-2004 at 05:45 AM.
 
Old 09-27-2004, 06:28 AM   #4
bennethos
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: -- Slackware for servers -- Debian for desktops --
Posts: 124

Rep: Reputation: 16
apache

ok I will try to guide you :-)

is your apache webserver connected to a wan ip ?

I mean, your eth0 card does it have a wan ip ?

type ifconfig eth0, if yes and your dns settings are ok, people will go to eg. gigaspeeds.com and see your webpage.

if not and you have a local ip configged like 192.168.1.20 then this thing will not work and you will have to explain me in what type of network you are situated (router ? etc...)

check it out
 
Old 09-27-2004, 11:09 AM   #5
dramous
LQ Newbie
 
Registered: Sep 2004
Posts: 13

Original Poster
Rep: Reputation: 0
is your apache webserver connected to a wan ip ?

I dont have this setup at all, i need to know the steps to putting in my static ip address, i believe that is what you are asking.

I mean, your eth0 card does it have a wan ip ?

i dont believe i have the static ip binded to the etho card. how do i do this?

I appreciate your willingness to get me on track with my server, I wonder could you give me some detail steps on setup things up. I believe i have most of my setting correct by using the apache configuration tool, but i need to make sure. Do i need to setup a virtual host other than the one created by default, and if so do i have it look for the ip address, or domain name.. This the type of quesiton i have, double checking for understand.
 
Old 09-27-2004, 03:46 PM   #6
bennethos
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: -- Slackware for servers -- Debian for desktops --
Posts: 124

Rep: Reputation: 16
apache config

A virtual host is the following :

Settings for virtual hosts, which allow Web requests to be sent to
different IP addresses or hostnames and have them handled by the
same Apache server process

Meaning you fool the requester in a way he your apache shows content located on another host.

I will explain :

a webserver with wan ip : 212.239.128.92 which has an apache web server on it, gets all his web info and shows it to requester from 212.239.127.12 .


Read following its a good explanation :

# ServerName: allows you to set a host name which is sent back to clients for
# your server if it's different than the one the program would get (i.e., use
# "www" instead of the host's real name).
#
# Note: You cannot just invent host names and hope they work. The name you
# define here must be a valid DNS name for your host. If you don't understand
# this, ask your network administrator.
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address (e.g., http://123.45.67.89/)
# anyway, and this will make redirections work in a sensible way.
#
ServerName 192.168.1.4 (in my case I don't have dns it's for my local lan + I request it via a dynamic name www.no-ip.com is a dyndns that gives you a hostname while using dynamic ip addresses, my port 80 in my cisco (192.168.1.1)router is forwarded to 192.168.1.4 so that all web requests will be handled by my webserver...


So first of all I don't think you need any virtual host...

Explain me your config, what's your host's ip for example ? What are you trying to set up ? etc...
 
  


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
Apache configuration BoardinBum Linux - Networking 3 12-29-2004 06:53 AM
apache configuration? jcsg Linux - Newbie 1 06-21-2004 08:08 AM
Apache configuration? sikandar Linux - Software 2 10-21-2003 01:54 PM
Apache 2 Configuration..... odgey Linux - Software 2 06-27-2003 03:20 AM
Apache configuration arraman Linux - Software 1 07-19-2001 01:56 AM


All times are GMT -5. The time now is 02:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration