All Questions
641
questions
58
votes
1
answer
165k
views
What does "app.run(host='0.0.0.0') " mean in Flask [duplicate]
I am reading the Flask documentation. I was told that with app.run(host='0.0.0.0'), I could make the server publicly available.
What does it mean ? How can I visit the server in another computer (...
34
votes
13
answers
37k
views
java.lang.IllegalArgumentException: No suitable parent found from the given view. Please provide a valid view
my app crashes when trying to display server message and I think the problem could be with my getView(). below is the registerActivity were the crash occurs and my activity_register.xml
import ...
20
votes
3
answers
13k
views
HTTP status code for "could not fulfill request for *known* reason"
HTTP 500 means the server could not fulfill the request for an unexpected reason. What is the best HTTP response code to use when the server could not fulfill the request for a reason that is known or ...
12
votes
3
answers
15k
views
Static files not found with webpack and django
The problem is that I can get access to the app on the browser but not static assets (js, jsx and images).
Technologies I am using:
django-webpack-loader 0.2.4
React 0.14
Django 1.8.5
Python 2.7
...
11
votes
3
answers
78k
views
flask - Display database from python to html
I have code like this to retrieve data from database and I want to display it in html.
This is app.py
@app.route('/news')
def news():
import pymysql
import re
host='localhost'
user =...
10
votes
1
answer
16k
views
Stopping/starting an application pool and site on a server
I would like to write a script and run it from my local PC to stop and start an application pool and site that exists on a server.
Value of App Pool and Site - Test
Value of server - SERVER1
Any ...
9
votes
2
answers
715
views
Make netcat discard all bytes after disconnect
I use netcat to run a tiny development webserver through the bash, which is able to handle one connection at once.
Netcat is started as follows (-k to make it survive multiple connections):
nc -kl ...
7
votes
4
answers
30k
views
How to deal with mixed content in a website which should be secured as https?
I am building a website on server A (with domain name registered), used for people to create and run their "apps".
These "apps" are actually docker containers running on server B, in the container, ...
7
votes
2
answers
22k
views
How to set a global variable in python flask? [duplicate]
I would like to set a global variable and use it as a trigger of various functions. Each user has a separate global variable. This is used to keep track of previous message data and proceed a ...
7
votes
1
answer
1k
views
What makes something be a request feature in ASP.NET Core?
There's one point in ASP.NET Core that I believe I didn't fully understand yet and that is the idea of request features. As explained in the docs:
Feature interfaces define specific HTTP features ...
7
votes
0
answers
1k
views
Can HTTPS ngrok tunnels be a safe way to run a production server?
If I use ngrok with HTTPS tunnels and a password, is it a safe way to run a production server from my computer?
I have been experimenting with this for a few days, and I noticed when paired with Voila ...
6
votes
2
answers
5k
views
How to deploy flutter web on Heroku
I built a web application in Flutter and run the command flutter build web successfully. I'm trying to find a way to deploy it on Heroku like my react applications but found nothing in Heroku ...
5
votes
2
answers
12k
views
Github 500 error the page can not be loaded
please help me , ı cant create a repository due to the error. after clicking the continue to layouts , 500 error appears on the page. ı refreshed it but ıt didnt work. ı use opera and stil having same ...
4
votes
1
answer
6k
views
Layered system constraint in REST API
I'm trying to get more acquainted with rest and try to understand what layered system means in REST architecture. As far as i understand it means that if API has database it should be on different ...
4
votes
3
answers
7k
views
Nameservers vs URL Forwarding
I have a domain name that I got from a domain name register. I think I understand that "url forwarding" means whenever someone types in the domain name I own, they are redirected to a different URL. ...
4
votes
1
answer
960
views
Respecting language header in cloudflare
Cloudflare is caching my requests but it's ignoring the language header.
example request:
URL :
https://api.example.com/v1/places/?param=1¶m=2
Header :
Accept-Language : en
But no matter ...
4
votes
1
answer
3k
views
How to see what web server is running on my mac?
I'm trying to learn how to create a custom WordPress theme. I've been following a tutorial, and I was trying to install DesktopServer onto my MacBook Pro (to create a local environment.)
But I'm not ...
4
votes
1
answer
3k
views
Support for HTTPS web server iOS
I have used GCDWebServer for an http server on iOS. However, by the end of the year https will be required. Is there another web server library compatible with https for IOS? I have no idea what is ...
3
votes
2
answers
2k
views
AWS Cloud9 Server refuses to connect
So I'm trying to make a website for school and I've been following this guys tutorial on how to make a website. But for some reason when I get to lesson 32 and I enter the ec2-user:~/environment/blog ...
3
votes
2
answers
5k
views
How to allow others to connect to my Django website?
Now that I have created a website, I wish the users can connect to my website within a local network. However my website now can only be accessible from the localhost (my pc), the others are not able ...
3
votes
4
answers
2k
views
How to set up a local server in Java for streaming? Need suggestions [closed]
I'm new to Java, and I wanted to do something cool with it. I came up with the idea to set up a local server for my home with it as the first step. I want a simple server running without internet, ...
3
votes
1
answer
4k
views
What is the file extension .bhtml and why use it?
Today I ran across a site that uses .bhtml as their served file extension. Is this just some proprietary internal php file? Is this used for SEO purposes? Why would anyone use it? Only thing on the ...
3
votes
1
answer
8k
views
HTTP Server - Serving up favicon.ico
I'm playing around setting up my own java http server to better understand http servers and what goes on under the hood of the web. I've developed a pretty simple server and have been able to serve ...
3
votes
1
answer
1k
views
Python file opens up in browser window instead of download prompt
I am trying to make files downloadable from my website, but when I test it by clicking on the download file, it opens up the code in a webpage, instead of downloading it. I'm using Firefox, by the way....
3
votes
2
answers
2k
views
How to set web server to display URL not IP address?
I currently have an apache web server setup on my raspberry pi running Raspbian. I've opened the ports on my router and registered a domain name through a website. In the website I set the domain to ...
3
votes
1
answer
3k
views
How to set variable value based on a subrequest
I am trying to set the value of a variable based on the result if the user is correctly logged in. I will use this variable for conditional ssi. I am using the auth_request module to authorise the ...
3
votes
1
answer
1k
views
How to connect to the localhost of an Android emulator?
Note that I'm not trying to connect to the localhost of the host machine from the Android emulator, I'm pretty much doing it in reverse - I started a server on the localhost inside Android emulator ...
3
votes
1
answer
899
views
Swift embedded HTTP server connects on Mac but not on iPhone
I'm trying to get this embedded HTTP server https://github.com/grzegorzleszek/HTTPSwiftServer working on Xcode iOS iPhone and all I need it to do is host and return a string. It's very basic and only ...
3
votes
1
answer
553
views
How to serve some other site in the browser using my server
I have my own server with the domain abc.com. I want to load some other site e.g xyz.com when users visit my website abc.com. I don't want to load xyz.com in an iframe.
I know one website which is ...
3
votes
0
answers
1k
views
Safari blank screen issue
We have a website which sometimes becomes non-responding in Safari.
The issue has been occuring since November 2020 on all of the Apple devices (iPhones, iPads, Macs)
The problem is that the page ...
2
votes
1
answer
12k
views
Python tornado web server: How to use multiprocessing to speed up web application
I have a web application that runs fine when used by one user, but as more clients start using it, it is unbearably slow. The server side is written in python and uses tornado. I noticed that while ...
2
votes
4
answers
6k
views
Xampp mysql not starting v3.2.4 [closed]
I tried deleting the aria_log_control file
I tried changing the port
I tried deleting aria_log.0000001 file
I tried deleting both aria_log_control and aria_log.0000001 file
I am running the control ...
2
votes
1
answer
2k
views
Xamarin App secure web server login
I am quite new to the world of Xamarin and mobile development, but have been asked to create a simple cross-platform mobile app which is able to log into a secure web server, download some SQL data ...
2
votes
1
answer
211
views
Simple web app of Bidi, Ring and Lein gives a 500 error
I am learning Clojure for the web. I am trying to implement Bidi and Ring in Lein app. When I open the site I get a 500 error:
HTTP ERROR: 500
Problem accessing /. Reason:
Response map is nil
Powered ...
2
votes
1
answer
762
views
Facing issue after deploying Go app on Heroku
I have deployed the Go App on Heroku but on hitting the url.. its not giving proper response. The Heroku logs looks something like this :
2015-06-27T10:43:06.839094+00:00 heroku[web.1]: Starting ...
2
votes
1
answer
3k
views
What is the most appropriate HTTP Status Code for Invalid Host/Referer request header?
I'm writing an Node.js/NPM module for protecting express servers against DNS Rebind attacks through server-side Host and Referer [sic] header validation. The server admin specifies whitelisted Hosts ...
2
votes
3
answers
17k
views
display domain instead of ip address as url
my website is www.somedomain.me, rented server from DigitalOcean, domian name is from Namecheap,
I redirected www.somedomain.me to http://104.236.xx.xx:6060/main/ ,
but when I open up www.somedomain....
2
votes
1
answer
564
views
Can i host a php 5.6 project without problems?
i have an old PHP/MySQL Project developped by php 5.6 and i want to know if the website will be hosted correctly even if the version is old
2
votes
1
answer
1k
views
Add plugins (Vue.use) after instance mounting (new Vue().$mount())
I have some vue plugins, like analytics, sentry etc. which require configuration data from server to set up.
I have to make a request for configuration, next do a Vue.use() and in the end, call new ...
2
votes
1
answer
144
views
Running two servers in java Blade Framework
I am using Java Blade Framework.
I'm trying to do that each server listens on its own port. However, when running two (or more) servers, only the first one works.
When I try to open the http://...
2
votes
3
answers
231
views
Keeping server UP with python simpleHTTP server
I am trying to make a blog and sustain it, on this blog the content will only be in html/css or some images, so I don't need any sophisticated web server, I've tried to write a script that will hold ...
2
votes
1
answer
80
views
How to allow a Server with a Private static IP to connect to the internet
I have developed an Enterprise Web App for my company that need to run on a private network. I have assigned the in house server a static IP so to make path to system constant for the users. The ...
2
votes
1
answer
580
views
Apache2 Problems after updating OSX to High Sierra
For the week I have had major issues with Apache. My development environment on my mac stopped working after I updated to High Sierra. I tried for hours fixing this myself but couldn't find a solution....
2
votes
1
answer
5k
views
Using multi-thread ,Build a simple HTTP server in C
As a school project , i was asked to build a simple HTTP server which can handle and process multiple and simultaneous requests , and to proof that this server will deliver my home page to the ...
2
votes
0
answers
102
views
apache removing slash from URL with reverse proxy
Every time I type https://www.alltypesofcontent.com/one/phpmyadmin, it redirects me to https://www.alltypesofcontent.com/onephpmyadmin/ What do I do about this to fix it? I am using apache2 reverse ...
2
votes
0
answers
1k
views
Apache2 shows default page even after disabling it
I've moved a wordpress site to an Ubuntu Server. While I access it from localhost everything works fine but when I try from my public IP address I can only see the apache2 default page.
I tried ...
2
votes
0
answers
4k
views
Get API Endpoint for new products in Nike.com
I'm having a BIG ISSUE finding API endpoints for nike.com/mx, I want to get the specific endpoints for new releases, i.e, new products, and want to get products even though they don't have stock, how ...
2
votes
0
answers
279
views
127.0.0.1 is refusing to connect when I use import dash
[Error while connecting to 127.0.0.1[\]\[1\][1]
[1]: https://i.stack.imgur.com/qo2mY.png
My code is like this :-
import dash
from dash.dependencies import Input, Output
import dash_core_components ...
2
votes
1
answer
265
views
Continuous Server Client Communication via sockets or callbacks
SO, I wish to ask something I cannot get my head around. For example I have an application which is required to track APPLICATION_1 location and the location is being updated at Firebase RealTime ...
2
votes
1
answer
1k
views
How to send back data to a server in a PWA website
I've searched and I can only find tutorials to pull info from a server to update the latest info of my PWA app using JSON. But I can't find any way and any example to fetch data back to a server to ...