recentpopularlog in

kme : webserver   28

Kickball/awesome-selfhosted: This is a list of Free Software network services and web applications which can be hosted locally. Selfhosting is the process of locally hosting and managing applications instead of renting from SaaS providers. | https://githu
This is a list of Free Software network services and web applications which can be hosted locally. Selfhosting is the process of locally hosting and managing applications instead of renting from SaaS providers. - Kickball/awesome-selfhosted
inhouse  selfhosted  webservices  webserver  webmaster  cloudstorage  cloudservice  list 
february 2019 by kme
cortesi/devd: A local webserver for developers | https://github.com/
A local webserver for developers. Contribute to cortesi/devd development by creating an account on GitHub.
webdevel  http  httpd  server  webserver  cli  golang 
january 2019 by kme
Apache redirect to another port - Stack Overflow [http://stackoverflow.com/]
You should leave out the domain http://example.com in ProxyPass and ProxyPassReverse and leave it as /. Additionally, you need to leave the / at the end of example/ to where it is redirecting. Also, I had some trouble with http://example.com vs. http://www.example.com - only the www worked until I made the ServerName www.example.com, and the ServerAlias example.com. Give the following a go.

<VirtualHost *:80>
ProxyPreserveHost On
ProxyRequests Off
ServerName www.example.com
ServerAlias example.com
ProxyPass / http://localhost:8080/example/
ProxyPassReverse / http://localhost:8080/example/
</VirtualHost>
apache  proxy  webmaster  hosting  webserver  solution 
november 2016 by kme
routing - How to serve static files using Klein.php - Stack Overflow
Another Option

One final thing I should note. If this is what you're really trying to do, rather than a simplified example, you may be able to accomplish the same thing with Apache mod_rewrite, or the equivalent in Nginx, and have better performance, since you're not executing any PHP code at that point. On the other hand, if you want to do something more advanced, like checking the user's login credentiails before deciding whether to serve the file, or serve files outside your document root, the way you're doing it is probably spot on.

I'm not very good at writing mod_rewrite rules, but I think you could do something like:

RewriteRule ^/web/(.+) /your/desired/path/$1 [R,L]

assuming the destination is web-accessible. Reference: http://httpd.apache.org/docs/2.2/rewrite/remapping.html

Or, if it's not web-accessible, it looks like you could setup an alias: http://httpd.apache.org/docs/2.2/urlmapping.html#outside
apache  rewriterule  redirection  statichtml  hosting  webserver  webmaster  webdevel  php  routing  altorouter  solution 
june 2016 by kme
Tech Tip: Really Simple HTTP Server with Python | Linux Journal
Open up a terminal and type:

$ cd /home/somedir
$ python -m SimpleHTTPServer


NB: for Python 3.x, this is 'python -m http.server'
webdevel  filesharing  collaboration  fileserver  webserver  fuckina  python  python3 
april 2016 by kme
Tatsuhiko Miyagawa's blog — Which should I use: Starman or Starlet?
Starman is a fully featured standalone HTTP server, that supports many features provided by Net::Server family itself.

Starlet is much simpler, and uses slightly less memory, albeit not supporting all the features you may or may not need.

If you want to control the number of processes dynamically, or want to use UNIX sockets, or want to use the feature XYZ of Net::Server, use Starman.

If you want to deploy on a resource restricted environment, or serve millions of requests per second and any slight performance and resource improvements count, use Starlet.

Using either of those, you’re recommended to put it behind a frontend proxy such as nginx. For zero-downtime deployments using TCP sockets, combine it with Server::Starter or SO_REUSE_PORT.
perl  psgi  plack  webserver  webdevel  compared 
may 2015 by kme

Copy this bookmark:





to read