web-server-chrome
web-server-chrome copied to clipboard
Add .htaccess support?
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?
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.
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 .
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.
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 .
Quite an impressive feature Ethan!