Comments (10)
Try it with a '/' (Slash) after "web_root". Sometimes it works better with a slash at the end.
from asmttpd.
@TheFox, thanks for the instant reply, but it's giving the same error whether I provide the directory with ending foreslash or not.
asmttpd - 0.08
Using Document Root: web_root/
An error has occured, exiting
Same error persists if I use directory (as webroot) other than the provided directory (web_root
) in this project's repository.
from asmttpd.
And if you use the absolute path?
from asmttpd.
@TheFox: Same result with absolute path:
$ sudo ./asmttpd /home/vishal/projects/asmttpd/web_root/
asmttpd - 0.08
Using Document Root: /home/vishal/projects/asmttpd/web_root/
An error has occured, exiting
from asmttpd.
Hi. Yeah I've got to improve that error message. Most likely port 80 is in use. You can make sure by using strace. Eg: strace ./asmttpd /blah
from asmttpd.
@nemasu Yep! That's the error which was causing it to exit. Thanks, and please surely change the error message appropriately.
Trace printed on stdout is something:
[truncated]
bind(4, {sa_family=AF_INET, sin_port=htons(80), sin_addr=inet_addr("0.0.0.0")}, 16) = -1 EADDRINUSE (Address already in use)
[truncated]
Can I provide different port, is it implemented yet?
BTW, you can close this issue by now.
from asmttpd.
have a config file should be a good solution... or simply by adding arguments to cmd line
from asmttpd.
Yeah, leaning toward command line options.
from asmttpd.
The port is defined near the top of main.asm. Keep in mind it's in network byte order.
from asmttpd.
Yeah, reading a config file something like .asmttpdrc
from home directory is a good idea, as so many popular softwares have such run commands files. Also accepting command line options, for example, -d <path/to/webroot/dir>
, -p <desired-port-number>
is also a convenient thing to consider.
from asmttpd.
Related Issues (20)
- Program cannot be restarted right away after exiting if clients have connected. HOT 5
- Directory Listing HOT 2
- Make code commenting consistent HOT 2
- Byte-wise comparison of HEAD, GET, etc. HOT 1
- Take a part in the web framework competition
- can we put another commandline argument to specify port HOT 2
- can performance kill nginx? HOT 4
- Please add Documentation HOT 3
- Support SVG? HOT 1
- Cannot access file with multiple extension HOT 2
- Support https? HOT 4
- Support HTTP/2 HOT 2
- Default document for sub directories? HOT 3
- I compiled It, get segmentation fault and cant curl it. HOT 3
- was this project abandoned ? HOT 4
- Incorrect response when sending http request in telnet mode
- Missing memory fences in mutexes HOT 2
- PhP support? HOT 1
- is it possible to run it on cortex-A7? HOT 1
- Directory listing on root url /
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asmttpd.