static-content

How to do Forms Authentication on purely HTML pages using ASP.NET?

可紊 提交于 2019-11-27 20:37:09
I am using forms authentication in IIS7 to password-protect a dev site, but the authentication seems to get by-passed when the site contains only static HTML files + login.aspx + web.config. When I renamed the files to .aspx, I am prompted with the login form I am not doing anything fancy. I have a very simple login script and it should just redirect to index.html afterward. Any suggestions? To summarize, the entire site is using HTML (for now) and needs to be password protected. <authentication mode="Forms"> <forms name="appNameAuth" path="/" loginUrl="~/login.aspx" defaultUrl="index.html"

Spring-Jersey : How to return static content?

可紊 提交于 2019-11-27 15:50:41
Question : How do I expose my css/ , images/ , js/ and other static files? How do I return a JSP page in my controller (not a String method) for my index view? Problems : In efforts to solve question #1 other projects use a filter jersey.config.servlet.filter.staticContentRegex (as seen here Stackoverflow Question ) I haven't been able to find dependencies that work correctly/at all with my project setup. In efforts to solve question #2 I attempted to introduce dependencies to use Viewable . Problem - transitive dependencies adversely affect the webapp from using the appropriate classes for

Azure Website slow to serve static JS/CSS but not binary

心已入冬 提交于 2019-11-27 11:31:58
问题 I have an Azure Website/Web App that is incredibly slow to serve static JS and CSS files but seems perfectly fine serving binary. To test the problem I uploaded two 30MB files, one big.js and the other big.rar . The JS file downloads at around 100KB/s if I'm lucky. The RAR file downloads at around 4,000KB/s. The results are extremely consistent. I've checked in Fiddler and gzip compression is occurring in both cases. As expected, the JS file is being sent with the MIME type application/x

Best lightweight web server (only static content) for Windows [closed]

北战南征 提交于 2019-11-27 09:59:26
I got application server running in Windows – IIS6.0 with Zend Server to execute PHP. I am looking for lightweight static content only web server on this same machine which will relive IIS form handling static content and increase performance. It need to be only static content web server – maximum small and maximum effective – lighttpd seems too big because allow to FastCGI. I am looking for: Windows, static content only, fast, and lightweight . I am using Windows Server 2003. ARF Have a look at mongoose : single executable very small memory footprint allows multiple worker threads easy to

How to do static content in Rails?

懵懂的女人 提交于 2019-11-27 06:02:09
Looking at different options: One is to just put the static pages in the public/ folder, but I do want the header from layout/application to be consistent. I tried this, but I got an error: # in routes.rb: map.connect '*path', :controller => 'content', :action => 'show' # in content_controller.rb: def show render :action => params[:path].join('/') end All I want is an easy way to put together things like my faq, contact, tos, privacy, and other non-application type pages somewhere easy by just creating an .rhtml. who has done this? Gabe Martin-Dempesy thoughtbot has a plugin called high

How do I use Spring Boot to serve static content located in Dropbox folder?

北慕城南 提交于 2019-11-26 23:43:00
I have a Spring Boot web application, and I would like to serve static content located in a shared Dropbox directory on my Linode VPS (~/Dropbox/images). I've read that Spring Boot will automatically serve static content from "classpath:/META-INF/resources/", "classpath:/resources/", "classpath:/static/", "classpath:/public/", but of course my Dropbox directory is not on the classpath. Although I could configure Apache to serve the images in my Dropbox folder, I would like to take advantage of Spring Security to restrict access of the static content to authenticated users. Dave Syer You can

How to do Forms Authentication on purely HTML pages using ASP.NET?

筅森魡賤 提交于 2019-11-26 22:57:26
问题 I am using forms authentication in IIS7 to password-protect a dev site, but the authentication seems to get by-passed when the site contains only static HTML files + login.aspx + web.config. When I renamed the files to .aspx, I am prompted with the login form I am not doing anything fancy. I have a very simple login script and it should just redirect to index.html afterward. Any suggestions? To summarize, the entire site is using HTML (for now) and needs to be password protected.

Spring-Jersey : How to return static content?

a 夏天 提交于 2019-11-26 22:25:44
问题 Question : How do I expose my css/ , images/ , js/ and other static files? How do I return a JSP page in my controller (not a String method) for my index view? Problems : In efforts to solve question #1 other projects use a filter jersey.config.servlet.filter.staticContentRegex (as seen here Stackoverflow Question) I haven't been able to find dependencies that work correctly/at all with my project setup. In efforts to solve question #2 I attempted to introduce dependencies to use Viewable .

How to configure Wildfly to serve static content (like images)?

南楼画角 提交于 2019-11-26 17:15:11
I have a JavaEE application running on Wildfly 8.0.0 Final. The application uses a lot of images and I don't want to store them in the database, so they are written to the hard disk. How can I configure Wildfly/Undertow in order to serve these files (/var/images) on a certain URL, for example http://localhost:8080/myapplication/imagesFromDisk ? Add another file handler and another location to the undertow subsystem in standalone.xml: <server name="default-server"> <http-listener name="default" socket-binding="http"/> <host name="default-host" alias="localhost"> <location name="/" handler=

Best lightweight web server (only static content) for Windows [closed]

≡放荡痞女 提交于 2019-11-26 12:49:41
问题 I got application server running in Windows – IIS6.0 with Zend Server to execute PHP. I am looking for lightweight static content only web server on this same machine which will relive IIS form handling static content and increase performance. It need to be only static content web server – maximum small and maximum effective – lighttpd seems too big because allow to FastCGI. I am looking for: Windows, static content only, fast, and lightweight . I am using Windows Server 2003. 回答1: Have a