Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

This question already has an answer here:

I have a TP-Link MR-3020 Router with a USB port.

What I want to do is to setup a website on my USB flash drive, which will be connected to the router via the USB port. Now, when anybody is connected to the router through wifi, when he goes to the router's IP address, instead of going to the firmware page, the user goes to the website on the USB stick.

Is this possible in any way?

I have read the following but they didn't help:

DD-WRT Host IIS website

Can I set up a website on a wifi router?

share|improve this question

marked as duplicate by Ƭᴇcʜιᴇ007, Tog, slhck Apr 28 at 5:59

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
You won't be able to actually install IIS on a router for lots of reasons, the main reason, your router can't run Windows. ** What you want as described cannot be done.** –  Ramhound Mar 31 at 18:02
    
In what way did those links "Not help"? The second one seems to answer your question to me. What exactly have you tried already? Where are you getting stuck? –  Ƭᴇcʜιᴇ007 Mar 31 at 19:44
    
@Ramhound I am not looking at IIS. I don't like it. I would use PHP and Apache... –  Awal Garg Apr 1 at 8:09
    
@techie007 The link you are talking about discusses about storing the website on the router itself or somewhere else. I want to store it on the usb drive connected to the router. This is because it will offer me more portability. The router is very small and I can power it with a portable battery. So I would keep the router, USB and the adapter in a bag, carrying it around. –  Awal Garg Apr 1 at 8:11
    
@AwalGarg - Your router still cannot be the actual web server. –  Ramhound Apr 1 at 10:17

1 Answer 1

Doing this should be possible, but non-trivial, and doing it could brick your device. You might want to look at loading OpenWrt (which appears to support your device but is harder to use then DD-WRT) onto your router, then configuring Apache. (You may want to move the default port for any web interface you put on to manage OpenWrt to a another port to free up port 80).

I agree with @Ramhound that you can't install IIS on an embedded router, but IIS is only a webserver - Apache does a similar job, as do a number of other web servers.

share|improve this answer
    
Would it run pages from the usb drive? –  Awal Garg Apr 1 at 9:56
    
@AwalGarg - You can configure Apache to run from a USB drive on a normal computer. I am not sure what good it would do though. –  Ramhound Apr 1 at 10:18
    
@Ramhound You mean, even if the computer is connected only through wifi? –  Awal Garg Apr 1 at 10:19
    
@AwalGarg - No..I don't mean that in the slightest. I mean exactly what I said. –  Ramhound Apr 1 at 11:13
    
@AwalGarg Yes, it should be able to be configured to run pages from the USB drive, presuming it was plugged in all the time or mounted in the same path. –  davidgo Apr 1 at 17:39

Not the answer you're looking for? Browse other questions tagged or ask your own question.