Cant access my hosted website
Hi sir, I am having trouble accessing the webserver that i setted up. i have a free domain at dot.tk and i have a static ip address over my ISP i already forwarded port80 over my server's Ip address. but still i am having trouble. web page is not available.
Please help me here. i want to host our website over here so that we dont pay for webhosting.. Thank you for your response. |
Hi, could you narrow down your problem?
Is there firewall ruleset for a webserver? Is the webserver functional from the lan? Can you ping www.your-website.tld? |
A Record of the free domain point to your static IP address?
|
i can access my webserver via lan. after turning off the Iptables firewall.
now. i forwarded port 80 to the server that i setted up. Upon entering the address on the address bar. it only says, waiting for example.com on the bottom left of the webpage. and i also tried to telnet it and i can connect via port 80. is there a problem with my httpd.conf? |
how can i make my website to be browseable in the internet. i have created a domain at dot.tk and and added hostname to my Static IP ADDRESS. the webpage only says waiting for reply. on my firewall i forwarded the port 80 to the ip address of my server. Im kinda stuck to this situation. could anyone please help me? thanks..
|
Hi, it seems you are really set to get your webpage up and out! Can you provide output from these commands?
Code:
service httpd status Yes its silly but your service may not be active! Once I know you have the service on then you can post config files, but please start with a simple testpage display before trying to send out a large config file, hmm. |
What does the access logs says in this regards ?
Do the logs confirms that the request coming to the web server ? If yes how they are getting rejected ? What firewall settings do you have ? Is your Domain to IP (DNS) is correctly setup to resolve when the request raised with the Domain ? |
Quote:
i am using centos as a webserver and my firewall is Endian Firewall. |
Quote:
|
Quote:
Code:
lsof -i:80 Code:
dig -x [your_webserver_ip] EDIT (ok i didnt saw the above comment): in case of apache apache access logs should be at /var/log/httpd so as the error logs. |
Im not so sure if the problem is my firewall. i have done forwarding ports here before but now its not working again. i dont know hows that posible but i didnt change any of my confguration. this is frustrating. hehehe
|
I don't know about Endian, but some firewalls doesn't automatically open a port when you create a NAT-rule (=port forward).
So check your firewall rules, is port 80 open from WAN? Also please answer SAbhi's questions. |
Quote:
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 3325/httpd its open right? this is on the firewall side. my DNS on my server is google 8.8.8.8 on my domain cpanel. i pointed my static IP address to the domain. this is the right thing to do right? and then. on my firewall i forwarder port80 to my server's Ip address. i dont know if the firewall is ahving a problem or my server is just not functioning right. |
Quote:
Sorry but untill adn unless you provide me with sufficient info i cant help. i asked for logs too and still not provided. |
Quote:
Same question when you run telnet localhost 80 on the server in question. On my system, this is what happens when I run telnet on the server: Code:
# telnet 192.168.1.5 80 This telnet session generated an entry [error] [client 192.168.1.5] Invalid method in request blabla in the error log /etc/httpd/logs/error_log. |
Quote:
telnet 192.168.1.213 80 Trying 192.168.1.213... Connected to 192.168.1.213. Escape character is '^]'. Connection closed by foreign host. i didnt get the blabla response like you have |
But that is telnet to your private ip!
We need to see what happens when you connect from outside! So please, give valid information: 1) dig <your.hostname> 2) Whois <your.hostname> 3) telnet <public ip> 80 Watch the log for apache while connecting to your webserver: # tail -f /var/log/httpd/error.log (I think it's correct path, could be /var/log/apache2/error.log) |
Quote:
; <<>> DiG 9.3.6-P1-RedHat-9.3.6-16.P1.el5 <<>> www.mrmstudios.tk ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46298 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;www.mrmstudios.tk. IN A ;; ANSWER SECTION: www.mrmstudios.tk. 300 IN A 123.136.73.42 ;; Query time: 375 msec ;; SERVER: 128.242.54.18#53(128.242.54.18) ;; WHEN: Mon Dec 16 10:35:00 2013 ;; MSG SIZE rcvd: 51 on telnet its connecting but its all black on apache server here is the error log.. [Mon Dec 16 18:05:55 2013] [error] [client 192.168.1.3] Directory index forbidden by Options directive: /var/www/html/ [Mon Dec 16 18:10:02 2013] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Dec 16 18:15:01 2013] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Dec 16 18:16:04 2013] [error] [client 192.168.1.3] Directory index forbidden by Options directive: /var/www/html/ [Mon Dec 16 18:20:02 2013] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Dec 16 18:25:01 2013] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Dec 16 18:30:01 2013] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Dec 16 18:30:34 2013] [error] [client 192.168.1.1] Invalid method in request \xff\xf4\xff\xfd\x06\xff\xf4\xff\xfd\x06 [Mon Dec 16 18:31:25 2013] [error] [client 192.168.1.1] Invalid method in request \xff\xf4\xff\xfd\x06 [Mon Dec 16 18:35:02 2013] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ |
Ah, I think I know!
You see, it's working for me, I get Apache 2 Test Page when I connect to www.mrmstudios.tk My guess is, are you trying from a computer in the same LAN as the webserver? If so the firewall needs to be configured to allow traffic that goes out & in on same interface. On pfSense for instance, this is handled by a special rule "Enable automatic outbound NAT for Reflection". Normally this is not allowed as it puts unnecessary load on the firewall. |
i think i got it too. i just use host as my DNS /etc/hosts on my firewall and direct traffic from there.
im not so sure though if its now working properly can u access it already sir pingu? have you seen the apache testpage for centos? i think its working. i just need to forward other ports to my server. hehehe |
Yes it's working from outside, I get the Apache testpage for Centos.
|
Quote:
|
Quote:
|
Quote:
So you have it working? No errors or timeouts? From here, the site is still accessible. Via telnet: Code:
$ telnet 123.136.73.42 80 |
Yeah that's the firewall outbound connection fail error in the logs.
So its nice to hear you made it work finally, now you should got why i was asking for the logs and why they are this important to share. Enjoy.. |
Quote:
Thanks for the replies ill ask again for more questions nextime sir :D |
Quote:
|
All times are GMT -5. The time now is 05:30 AM. |