christoffrombern

Q: Did i somehow set up my own webserver?

Hello community

 

I am new in website developping and i am running a website called www.resthouse-wallis.com.

Actually i cannot run the website and I think it is not because of my hosting.

 

Is it possible that with some changes in Terminal (nginx, apache) that I am running my own webserver, and did not configure it well?

 

Or is it possible that my website got hacked?

A friend of mine transmitted some photos via net2ftp.com

 

I am really a new mac developper and need some help in finding the problem.

MacBook Pro (Retina, 15-inch, Late 2013), OS X Mavericks (10.9.5)

Posted on Aug 12, 2016 9:16 AM

Close

Q: Did i somehow set up my own webserver?

  • All replies
  • Helpful answers

  • by Phil0124,Helpful

    Phil0124 Phil0124 Aug 18, 2016 8:21 AM in response to christoffrombern
    Level 7 (27,358 points)
    iPhone
    Aug 18, 2016 8:21 AM in response to christoffrombern

    What does " i cannot run the website" mean exactly?

    Can you not access it on a browser?

    What happens when you try?

    Was it working before?

     

     

    FYI, the URL works fine for me, Leisure Residence in Canton Valais. 

     

    OS X includes the Apache 2 web server you can activate at any point. However this would be a local web server, and unless you've configured your router would not be available outside your own network.

     

    Having a local webserver has nothing to do with your hosted website somewhere else. 

     

    Any website can be hacked, the real question, is why would someone want to?    It takes time and effort to hack a site, and it usually demands a purpose, objective or payback. Why would someone want to hack your website, and would anybody know about it that would take the time to do so?

  • by christoffrombern,

    christoffrombern christoffrombern Aug 18, 2016 8:24 AM in response to Phil0124
    Level 1 (4 points)
    Mac OS X
    Aug 18, 2016 8:24 AM in response to Phil0124

    I can not access the website on my browser at home.

    It is working from anywhere, but not from my home.

    It is saying "website is not available" (translated from German)

     

    My websites are hosted on www.servertown.ch

     

    Probably I did not set up the router in a good manner?

    I am going to give a phone call to my internet provider.

     

    Thks

  • by etresoft,

    etresoft etresoft Aug 18, 2016 9:05 AM in response to christoffrombern
    Level 7 (29,173 points)
    Mac OS X
    Aug 18, 2016 9:05 AM in response to christoffrombern

    Hello christoffrombern,

    Check your hosts file at /etc/hosts. You may have some redirection installed there.

  • by Phil0124,

    Phil0124 Phil0124 Aug 18, 2016 9:19 AM in response to christoffrombern
    Level 7 (27,358 points)
    iPhone
    Aug 18, 2016 9:19 AM in response to christoffrombern

    You may have some setting somewhere redirecting the URL to an invalid IP.

     

    Did you modify your computer's Host file at any point?

     

    Have you altered your router settings at any time?

  • by christoffrombern,

    christoffrombern christoffrombern Aug 18, 2016 11:21 PM in response to Phil0124
    Level 1 (4 points)
    Mac OS X
    Aug 18, 2016 11:21 PM in response to Phil0124

    Yes i did, trying to repair it.

    should be back to normal?

     

    But i did not change the router.

     

    ##

    # Host Database

    #

    # localhost is used to configure the loopback interface

    # when the system is booting.  Do not change this entry.

    ##

    127.0.0.1 localhost

    255.255.255.255 broadcasthost

    ::1             localhost

    fe80::1%lo0 localhost

  • by Phil0124,

    Phil0124 Phil0124 Aug 19, 2016 7:49 AM in response to christoffrombern
    Level 7 (27,358 points)
    iPhone
    Aug 19, 2016 7:49 AM in response to christoffrombern

    There does not appear to be anything in that hosts file that would modify the IP your website name is pointing to.

     

     

    If you open a terminal, and type :  ping -c 3 www.resthouse-wallis.com and press enter what happens?

     

    Can it resolve the name to an IP? If so which IP?

     

    If should be something in the range of 94.231.94.14

     

    If its not resolving to a correct IP, then you'll need to talk to your Internet service provider. It's possible their DNSs do not have the appropriate IP for your website anymore.

  • by christoffrombern,

    christoffrombern christoffrombern Aug 19, 2016 1:02 PM in response to Phil0124
    Level 1 (4 points)
    Mac OS X
    Aug 19, 2016 1:02 PM in response to Phil0124

    Terminal answers:

    PING resthouse-wallis.com (94.231.94.14): 56 data bytes

    Request timeout for icmp_seq 0

    Request timeout for icmp_seq 1

    3 packets transmitted, 0 packets received, 100.0% packet loss

  • by etresoft,

    etresoft etresoft Aug 19, 2016 1:29 PM in response to christoffrombern
    Level 7 (29,173 points)
    Mac OS X
    Aug 19, 2016 1:29 PM in response to christoffrombern

    Hello again christoffrombern,

    It looks like your server is misconfigured. If you navigate to www.resthouse-wallis.com, it works fine, but not if you go to resthouse-wallis.com. You can't ping either one because the www server is the only part accessible.

  • by Phil0124,

    Phil0124 Phil0124 Aug 19, 2016 2:59 PM in response to etresoft
    Level 7 (27,358 points)
    iPhone
    Aug 19, 2016 2:59 PM in response to etresoft

    For me it works for both www.resthouse-wallis.com, and resthouse-wallis.com.

     

    In fact www.resthouse-wallis.com redirects to resthouse-wallis.com.

     

    Beyond that, IP resolution seems to be correct based on the ping results, so its not a DNS issue.  The fact Ping does not get an answer just means the server is probably configured to not answer pings. Nothing wrong with that.

     

    But at this point I am stumped as to why Christof cannot access the website.

  • by etresoft,

    etresoft etresoft Aug 19, 2016 4:21 PM in response to Phil0124
    Level 7 (29,173 points)
    Mac OS X
    Aug 19, 2016 4:21 PM in response to Phil0124

    Perhaps it has already been fixed. They both work for me too. Maybe it just hadn't propagated yet.

  • by Phil0124,

    Phil0124 Phil0124 Aug 19, 2016 6:47 PM in response to etresoft
    Level 7 (27,358 points)
    iPhone
    Aug 19, 2016 6:47 PM in response to etresoft

    etresoft wrote:

     

    Maybe it just hadn't propagated yet.

    Perhaps you are right.