web-server-chrome icon indicating copy to clipboard operation
web-server-chrome copied to clipboard

Add .htaccess support?

Open old-df38257622 opened this issue 5 years ago • 5 comments

Hello! I don't know if this is already implemented and I'm doing it wrong, but when I put an .htaccess file in my server's root folder, containing a simple ErrorDocument /404.html line, and then go to a non-existent page on the server, such as 127.0.0.1:8887/jgjguthudg.html I still get an Entry Not Found. Is there already a default htaccess I can edit / a way to add in or otherwise emulate an htaccess file?

old-df38257622 avatar Oct 13 '19 15:10 old-df38257622

It's my belief that this is supposed to be a relatively basic web server, and not the kind of thing that one would want to host any kind of production website on. Given the fact that this is a chrome extension, and therefore can't run native code, one could expect absolutely horrible performance if it tried to behave like a fully-featured web server.

If you are looking to use .htaccess, you should use a local Apache web server (after all, .htaccess is an Apache configuration file). If all you want is custom 404 page support for this extension, look at issue #182.

ecc521 avatar Oct 14 '19 01:10 ecc521

Right, but just because I need, say, a custom 403 page as well, how would that work? htaccess doesn't need to be mandatory. I'm not able to run an Apache web server because all I have is an unrooted Android O phone, and my ARM Chromebook.

On Sun, Oct 13, 2019, 8:58 PM Tucker Willenborg [email protected] wrote:

It's my belief that this is supposed to be a relatively basic web server, and not the kind of thing that one would want to host any kind of production website on. Given the fact that this is a chrome extension, and therefore can't run native code, one could expect absolutely horrible performance if it tried to behave like a fully-featured web server.

If you are looking to use .htaccess, you should use a local Apache web server (after all, .htaccess is an Apache configuration file). If all you want is custom 404 page support for this extension, look at issue #182 https://github.com/kzahel/web-server-chrome/issues/182.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kzahel/web-server-chrome/issues/191?email_source=notifications&email_token=AK7H77IIZB6TC4UE3LHS6F3QOPG5PA5CNFSM4JAHNMT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBDF4LY#issuecomment-541482543, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK7H77PNUKMI7MPFA6A4NPTQOPG5PANCNFSM4JAHNMTQ .

old-df38257622 avatar Oct 14 '19 13:10 old-df38257622

Although Linux for Chromebooks doesn't interface with localhost, you can still use a server with it. Just type hostname -I to get the IP address of the Linux terminal.

ecc521 avatar Oct 14 '19 21:10 ecc521

I'm on an older Chromebook, ARMHF, so I don't have anything like apt, whch means that web server chrome is my best option.

On Mon, Oct 14, 2019, 4:22 PM Tucker Willenborg [email protected] wrote:

Although Linux for Chromebooks doesn't interface with localhost, you can still use a server with it. Just type hostname -I to get the IP address of the Linux terminal.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kzahel/web-server-chrome/issues/191?email_source=notifications&email_token=AK7H77IJTPUE6KVR2MGBAU3QOTPHVA5CNFSM4JAHNMT2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBGS6YY#issuecomment-541929315, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK7H77OAKYOZKTGFIJITHKDQOTPHVANCNFSM4JAHNMTQ .

old-df38257622 avatar Oct 14 '19 22:10 old-df38257622

Quite an impressive feature Ethan!

kzahel avatar May 23 '21 06:05 kzahel