LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   phpBB/ apache domain names (https://www.linuxquestions.org/questions/linux-networking-3/phpbb-apache-domain-names-186559/)

doralsoral 05-27-2004 12:28 PM

phpBB/ apache domain names
 
ok ive got phpBB and apache set up on my own personal server and phpBB uses domain names to do some stuff. the problem is im using dyndns and when i set up phpBBi have to put my dyndns name in there, but this doesnt allow me to access the BB locally. is there anyway i can make it so i can access it locally and from the internet.

david_ross 05-29-2004 04:21 PM

Put an entry in the hosts files of your local clients such as:
192.168.1.10 myhost.dyndns.org

This is where your DNS name is myhost.dyndns.org and the local IP of the server is 192.168.1.10

doralsoral 05-29-2004 04:40 PM

i tried that buit when i try to login it tries to send me to myhost.dyndns.org which is redirected to the ip in dyndns database which i cant access from the local network

david_ross 05-29-2004 04:48 PM

Did you make the hosts entry in the client PC? Check that you used the correct values for your network.

doralsoral 05-29-2004 06:36 PM

ok let me get this straight is this what youre tryign to get me to do:
first make the domain name for phpBB leftshoe.kicks-ass.org
then on my client machine in /etc/hosts make an entry that says 192.168.0.100(server ip) leftshoe.kicks-ass.org leftshoe
i think i will try that and then do i have to add anything to /etc/hosts on my server?

david_ross 05-30-2004 08:57 AM

On the server hosts file you should add "leftshoe.kicks-ass.org" to the loopback ip - such as:
127.0.0.1 localhost localhost.localdomain leftshoe.kicks-ass.org leftshoe

Then in your client(s) hosts files:
192.168.0.100 leftshoe.kicks-ass.org leftshoe

This way when your client looks for host "leftshoe.kicks-ass.org" (or leftshoe) it will go to the IP address of 192.168.0.100 - When the server requests "leftshoe.kicks-ass.org" it will just use it's loopback IP.

doralsoral 05-30-2004 09:02 AM

k i think ig ot it working thanks a lot


All times are GMT -5. The time now is 02:50 AM.