Support » Localhost Installs » Simple website link in WAMP

  • thehitman47

    (@thehitman47)



    Hello everyone,

    This might sound like a stupid question and I think it it out of place a bit, in that case sorry.

    I don’t very well know to set up the links for my wamp hosted wordpress page.

    So it’s this case: I want to host a blog on my home PC. I’ve already set up domain settings and ports in my router so it’s fine. (port 80 on custom domain goes straight into wamp settings page on PC)

    Now I need to make the link be like “localhost/welcome” instead of “localhost/wordpress/welcome”

    How can I do that, or is it even possible? πŸ™‚

    Thanks. Image below

    Capture.png

    • This topic was modified 3 months ago by  thehitman47.
    • This topic was modified 3 months ago by  thehitman47.
Viewing 7 replies - 1 through 7 (of 7 total)
  • thehitman47

    (@thehitman47)

    Hmm, I just came around a feature called Virtual hosts, that could simplify the URL the way I need it. But the page mentions it only works for localhost.

    Can a virtual host be accessed from the “outside” (custom domain forwarding the port 80)?

    Yes, virtualhost can be accessed from outside. From the local LAN you can put the hostname and the ip address of your “home PC” into their hosts file. From the internet you would setup port forwarding in your modem/router to forward port 80 from the internet side to your “home PC”. The traffic would arrive at your modem either using one of the dynamic IP solutions, or if your ISP provides you a fixed IP then you could put it into the DNS system, or have people put it into their hosts file.
    Details on hosts file here:
    https://en.wikipedia.org/wiki/Hosts_(file)

    The question remains as to why you want to make your PC accessible to the internet, very few people do this.

    Thank you – I have exactly this setup, a custom domain bought from no-ip and the ASUS router providing DDNS to the custom domain, forwarding the necessary ports to my PC.

    I don’t know enough people at my ISP to have the privilege of a fixed ip haha πŸ™‚

    Regarding the “very few people do this”, did you mean that it’s better to rent some cheap hosting for the blog?

    I already have my PC accessible to the internet for about a year with SMB and qBittorrent web ui server, to create my own more reliable versions of netflix & spotify when I’m out πŸ™‚ Everything has strong passwords, including the router itself which is also accessible at another port.

    I don’t know enough people at my ISP to have the privilege of a fixed ip haha πŸ™‚

    Some ISP provide a fixed IP, some for an additional fee. For many others it is simply not available, in these cases some routers can be configured with one of the dynamic IP solutions.

    Regarding the β€œvery few people do this”, did you mean that it’s better to rent some cheap hosting for the blog?

    Yes, cheap shared hosting is what most people do.
    Having your PC accessible with SMB and torrent is a limited exposure, it is on a different scale to inviting the world to scan your server via a domain name.

    Having your PC accessible with SMB and torrent is a limited exposure, it is on a different scale to inviting the world to scan your server via a domain name.

    Oh indeed I forgot about website indexing… Silly me, ain’t very experienced with this side of things.

    I believe I’ve set no-ip to not publish any information outside the registrar. And there’s a setting in WordPress to discourage indexing. Do you think they are enough? Or do you strongly recommend the cheap hosting?

    The idea of using my home PC/WAMP was strictly for convenience. Now both options seem just as… complex πŸ™‚

    LE: My ISP doesn’t officially provide fixed ip but some people get it. Well I forgive them, they offer cheap 1000/1000 symmetric connection πŸ™‚

    • This reply was modified 2 months, 4 weeks ago by  thehitman47.

    Attackers scan IP addresses directly and then look for open ports — they couldn’t care less about your domain name. And home systems aren’t hardened against the types of attacks these people might attempt. For example, I suspect that a 100Gbps DDoS attack will result in your ISP terminating your service.

    Localhost systems are great for development. But for a production site…the risks of using your home system far outweigh the rewards. Please consider traditional hosting.

    Now I’ve got it. I’ll use some cheap hosting, and scrap the idea of using virtual hosts on pc.

    Thanks a lot for the explanation!

    I never expect that blog to become so popular that a huge ddos will be worth it for someone/somebody, but only now I’m understanding how the modern web works, and indeed it’s a bad idea to host with the home pc.

    If I understood right there might be some automatic scrappers (from social media links or whatever) looking for valid sites to break into – and my puny home hardware won’t stand a chance against them.

    I actually built a decent page with WordPress in the last couple of days, now let’s move the database πŸ™‚

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.