webserver

How to block access to a particular route in .htaccess file

纵饮孤独 提交于 2019-12-25 17:46:14
问题 I need to block access to a particular route in my web application using a .htaccess file for everyone except a list of IP's. When I say block and whitelist IP's I want to use the following on particular route order deny,allow deny from all allow from 1.1.1.1 allow from 2.2.2.2 I tried using the Location directive, but it is not allowed in .htaccess. I do not have access to the server config file since it is a managed hosting provider The route I want to block is for eg: http://www.example

Use Firefox OS as web server

拜拜、爱过 提交于 2019-12-25 14:00:13
问题 For an art project, I'd like to have multiple distributed devices that can output sound. Firefox OS devices seem optimal. They bring the necessary hardware and I know HTML and JS very well. But I also need a control web server. From my understanding, a Firefox OS device can act as an WiFi access point ("Share Internet"). However, it cannot act as a small web server for other devices that join the network – without any internet connection. The APIs for native apps seem just not to be powerful

Serving Silverlight apps from the webserver

六月ゝ 毕业季﹏ 提交于 2019-12-25 11:47:34
问题 I am building my own web server and want to serve from it a Silverlight application. Is there anything else I have to do besides setting the mime type and pushing the application through the wire? It probably makes no difference, but the web-server is in C# (the micro-edition). 回答1: No, silverlight is all run on the client, so unless you want to do some webservices or whatever, you needn't do anything other than set the mime-type. It is really just like a separate file that you serve to the

proc_open returns false but does not write in error file - permissions issue?

不打扰是莪最后的温柔 提交于 2019-12-25 11:31:21
问题 Being kind of new to the subject, I have set up an Ubuntu 12 webserver, root directory is /var/www/ containing my script index.php and a subdirectory called "reduce" that contains a binary (a computer algebra system, file name is also "reduce"). Using ssh, I can log in as root and my non-admin user account and cd to the /var/www/ directory and launch the binary by executing "./reduce/reduce". However, if I do the same thing from withing my index.php file, it does not work. Here is the

Redirect Web Page Requests to a Default Sub Folder

有些话、适合烂在心里 提交于 2019-12-25 05:28:29
问题 I am using UltiDev Web Server Pro and have all my aspx files are located in a sub folder 'WebForms'. I want to be able to default all requests for pages to this folder such that they can just type: http://myserver/somepage.aspx instead of http://myserver/WebForms/somepage.aspx . Is this possible? EDIT: Here is the VB.NET version of the solution below including a check for case sensitivity: If Not HttpContext.Current.Request.Path.ToUpper.Contains("/WEBFORMS/") Then Context.RewritePath("

Redirect Web Page Requests to a Default Sub Folder

妖精的绣舞 提交于 2019-12-25 05:28:05
问题 I am using UltiDev Web Server Pro and have all my aspx files are located in a sub folder 'WebForms'. I want to be able to default all requests for pages to this folder such that they can just type: http://myserver/somepage.aspx instead of http://myserver/WebForms/somepage.aspx . Is this possible? EDIT: Here is the VB.NET version of the solution below including a check for case sensitivity: If Not HttpContext.Current.Request.Path.ToUpper.Contains("/WEBFORMS/") Then Context.RewritePath("

Streaming mp3 while it is being generated on the server

情到浓时终转凉″ 提交于 2019-12-25 03:34:34
问题 I am trying to stream an mp3 via javascript/html5 or flash on my webserver. The javascript/html front end calls a script on the server which begins generating an mp3 file. I want the file to begin playback immediately once enough audio is buffered, and to continue playing. I am new to streaming and want to know the best method to do this in both apache server and windows iis. At first I thought I would need to use an actual streaming protocol, such as rtp or rtsp, but it seems like it maybe

what happend when click mutilple links before browser display the requested page

爷,独闯天下 提交于 2019-12-25 03:14:10
问题 say I open a browser window, click weather link , but the network is slow, before the server send me back anything, I click another sport link. which page will I get eventually? since the second httprequest may arrive the server earlier than the first one. and server will may send back the response for the second httprequest first, so my browser will display weather page instead of sport page? since there are two response, how does browser handle them? is that possible browser dispay weather

Using the least resources possible, what would be the best way to simulate a hung web application?

不想你离开。 提交于 2019-12-25 02:29:32
问题 I want to create a page that simulates a hung/frozen web page. For example, I could use a really long "sleep" in PHP. But if I wanted to make this a public tool, I could well imagine this might eat up server resource (sockets, memory, etc - I'm not that experienced at this level of abstraction) and eventually cause real problems for the server. I don't want to simply close the socket with the client, because that would not provide the type of "waiting" behavior I want to simulate. The

Permission issue when writing file on webserver (flask, apache & wsgi)

你说的曾经没有我的故事 提交于 2019-12-25 02:21:17
问题 I'm trying to deploy my very first web app and I have no knowledge on this. It's fairly interesting but I feel like I have no idea what I am doing when I try to fix an issue. I created a server on digital ocean which run on ubuntu 18.04 and I've been fighting with it over the past 2 days in order to make my website run smoothly. I now feel that the end is near but I am stuck on a permission access issue. My app is working through flask. I'm using wsgi_mod and apache to run it. I've put down 2