LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Why doesn't the subdomain work externally? (https://www.linuxquestions.org/questions/linux-networking-3/why-doesnt-the-subdomain-work-externally-4175432079/)

Anderl 10-14-2012 09:58 AM

Quote:

Originally Posted by routers (Post 4805399)
the ip is the machine ip you install bind
if you have 2 ip in the machine then submit both ip
one become ns1 and the other one become ns2

if you have another machine want to become ns2 is more welcome
mean you have ns1 and ns2 from diffrent machine this way more better :)

Okay, thank you for everything.

Anderl 10-14-2012 12:05 PM

It is now working but it is redirecting to main path instead of the path that I've set on httpd.conf, what can I do?

routers 10-14-2012 12:15 PM

looks good :)

Domain Name: NEOPLAYGROUNDS.COM
Registrar: INSTRA CORPORATION PTY, LTD.
Whois Server: whois.instra.net
Referral URL: http://www.instra.com
Name Server: NS1.NEOPLAYGROUNDS.COM
Name Server: NS2.NEOPLAYGROUNDS.COM

however remember to hold your time for propagation

Anderl 10-14-2012 12:29 PM

Quote:

Originally Posted by routers (Post 4805483)
looks good :)

Domain Name: NEOPLAYGROUNDS.COM
Registrar: INSTRA CORPORATION PTY, LTD.
Whois Server: whois.instra.net
Referral URL: http://www.instra.com
Name Server: NS1.NEOPLAYGROUNDS.COM
Name Server: NS2.NEOPLAYGROUNDS.COM

however remember to hold your time for propagation

I know it's working already. The problem is that cp.neoplaygrounds.com redirects to the main path ( /var/www/ ) and not to the custom path I've set in httpd.conf. What can I do?

routers 10-14-2012 12:29 PM

i try to edit the page before but problem with this LQ now extra info for you
your dns looks good


[rou@mga ~]$ nslookup cp.neoplaygrounds.com 178.238.227.167
Server: 178.238.227.167
Address: 178.238.227.167#53

Name: cp.neoplaygrounds.com
Address: 178.238.227.167


its resolved :)

Anderl 10-14-2012 12:34 PM

Quote:

Originally Posted by routers (Post 4805494)
i try to edit the page before but problem with this LQ now extra info for you
your dns looks good


[rou@mga ~]$ nslookup cp.neoplaygrounds.com 178.238.227.167
Server: 178.238.227.167
Address: 178.238.227.167#53

Name: cp.neoplaygrounds.com
Address: 178.238.227.167


its resolved :)

I think you didn't understand yet the problem: The problem is that cp.neoplaygrounds.com redirects to /var/www/ and not to /var/www/cp/www/. Do you understand now?

routers 10-14-2012 12:38 PM

Quote:

Originally Posted by Anderl (Post 4805498)
I think you didn't understand yet the problem: The problem is that cp.neoplaygrounds.com redirects to /var/www/ and not to /var/www/cp/www/. Do you understand now?

yeah i understand i show u what i got

"Oops! Google Chrome could not find cp.neoplaygrounds.com"

this is happen when your dns just join global registry, please hold your time

however you can paste the httpd.conf container for that cp let me see

Anderl 10-14-2012 12:46 PM

Quote:

Originally Posted by routers (Post 4805504)
yeah i understand i show u what i got

"Oops! Google Chrome could not find cp.neoplaygrounds.com"

this is happen when your dns just join global registry, please hold your time

however you can paste the httpd.conf container for that cp let me see

Oh, okay.

Quote:

however you can paste the httpd.conf container for that cp let me see
You mean, paste the httpd.conf code here for you to see it? Sure:

Quote:

Listen 90
NameVirtualHost *

<VirtualHost *>
ServerName neoplaygrounds.com
DocumentRoot /var/www/
</VirtualHost>

<VirtualHost *>
ServerName cp.neoplaygrounds.com
DocumentRoot /var/www/cp/www
</VirtualHost>
I got to change port in 'Listen 80' because with port 80 I got error of Apache.

routers 10-14-2012 12:53 PM

Quote:

Originally Posted by Anderl (Post 4805510)
Oh, okay.



You mean, paste the httpd.conf code here for you to see it? Sure:



I got to change port in 'Listen 80' because with port 80 I got error of Apache.

i think you need to settle this one first dont be hurry
can you show me this result

# cat httpd.conf |grep 80
then we go one by one

Anderl 10-14-2012 12:59 PM

Quote:

Originally Posted by routers (Post 4805518)
i think you need to settle this one first dont be hurry
can you show me this result

# cat httpd.conf |grep 80
then we go one by one

Nothing shows, I've tried that before.

routers 10-14-2012 01:01 PM

ok try now change back to 80 then stop and start apache, any error please post

Anderl 10-14-2012 01:03 PM

Quote:

Restarting web server: apache2 ... waiting (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
failed!
I get this.

routers 10-14-2012 01:04 PM

okeh something is using the port now execute this

# netstat -tanp |grep 80
show the output

Anderl 10-14-2012 01:07 PM

Nothing appears too.

routers 10-14-2012 01:12 PM

off iptables if you on
then execute
# setenforce 0

that 0 is 0123 not Orange

then start apache


All times are GMT -5. The time now is 01:27 PM.