LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Apache Configuration (https://www.linuxquestions.org/questions/linux-newbie-8/apache-configuration-235687/)

dramous 09-27-2004 03:54 AM

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'

bennethos 09-27-2004 04:00 AM

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 :p

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

dramous 09-27-2004 04:30 AM

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 ;-)
:scratch:

please guide me on the right path

bennethos 09-27-2004 05:28 AM

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

dramous 09-27-2004 10:09 AM

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.

bennethos 09-27-2004 02:46 PM

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...


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