LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux Centos with apache webserver (https://www.linuxquestions.org/questions/linux-newbie-8/linux-centos-with-apache-webserver-852668/)

rewards 12-27-2010 03:39 PM

Linux Centos with apache webserver
 
Hello all. I have setup a Linux Centos with apache server on it in a home network. Everything works fine. When I access the webserver I put in the address bar the IP address of the server which is 192.168.0.150 and when hit enter, it prompts the page where I have to put login information. The login information is set to:
username: admin@localhost.local
password: *************

It takes long time for authentication go through and load the page eventhough I am accessing the site in a same home local area network with fast ethernet connection.

How can I change the localhost.local to something else like maybe "muysite.com" instead and if I have to change settings in other files as well?

Thank you for your feedback

acid_kewpie 12-27-2010 04:20 PM

to do this *properly* you must buy the domain and set up your own DNS to forward traffic to the server. You can easily put whatever hostname you want in your /etc/hosts on the client on the same subnet and use it immediately. As for the delay, you've not said a single thing about what this authentication is, so we can't comment. Arbitrary delays on fast networks are very frequently reverse DNS lookup related though, as a wild stab in the dark.

ilvista 12-27-2010 05:49 PM

yes ,you need to buy a domain name like mysite.com and point the dns to your server like acid_kewpie has said,and also you need a static public IP address,and forward the 80 port to your httpd Centos machine.

rewards 12-27-2010 07:23 PM

This ia development server at home behind the router. Do I still need to buy Domain?

acid_kewpie 12-27-2010 07:44 PM

Within the confines of your own network, no.

John VV 12-27-2010 11:11 PM

buy a domain ? yes and no

i used to use "no.ip.com"
http://www.no-ip.com/

and set up the "free" account
MyStiesName.no-ip.com

or you can buy an address


also just how did you install the apache stack ?
from the cent repos using yum ?
Code:

yum groupinstall "Web Server"
or by hand ,installing
Apache
Php
MySQL
perl
PhpMyAdmin
and any others

i recommend the "by hand" for the first few installs
That way YOU LEARN how to set up every config file . there are a few .

Quote:

As for the delay, you've not said a single thing about what this authentication is, so we can't comment.
what did you set up in the httpd.conf ? and is the mysql DB also set to it ?
as i recall apache has 3 different ways set as examples in the VERY well documented conf file


All times are GMT -5. The time now is 02:09 PM.