Comments (5)
but you can change the hosts file:
sudo vim /etc/hosts/
and put in:
127.0.0.1 example.com
save and exit.
http://example.com:8080 will now be redirected to us but
http://example.com/ not!
from webserv.
@MaxIhme you started "./webserv web.conf" ?
I cannot use this config file:
all config files are in conf/.conf -> when you put another config file to test there you have to do: ./webserv conf/.conf
from webserv.
How do you test this???
Edit Max: look at the first post. put host example.com; in the server directive and start webserve with that config.
in bash should come:
Finished creating the ports:
........ example.com ......
and then you can do the second post.. modify the hosts file on your system and put "127.0.0.1 example.com" in and save it.
Then you start webserve and put in the browser http://example.com:8000 and our website should come
from webserv.
for me (as describes in the top comments) runs ok
from webserv.
curl --resolve example.com:8000:127.0.0.1 http://example.com:8000
from webserv.
Related Issues (20)
- PROBLEM Check with a browser: Try anything you want to. HOT 3
- PROBLEM: Port issues: In the configuration file setup multiple ports and use different websites. Use the browser to ensure that the configuration works as expected and shows the right website. HOT 4
- Port issues: In the configuration, try to setup the same port multiple times. It should not work. HOT 3
- PROBLEM: Guidelines: You must also verify the absence of memory leaks. Any memory allocated on the heap must be properly freed before the end of execution. You are allowed to use any of the different tools available on the computer, such as leaks, valgrind, or e_fence. In case of memory leaks, tick the appropriate flag. HOT 3
- PROBLEM: Mandatory Part: Check the code and ask questions: Launch the installation of siege with homebrew. HOT 1
- PROBLEM: Siege & stress test: Use Siege to run some stress tests. HOT 3
- Siege & stress test: Availability should be above 99.5% for a simple GET on an empty page with a siege -b on that page. HOT 4
- Siege & stress test: You should be able to use siege indefinitely without having to restart the server (take a look at siege -b). HOT 4
- Configuration: Setup multiple servers with different ports. HOT 5
- Port Issues: Launch multiple servers at the same time with different configurations but with common ports. Does it work? If it does, ask why the server should work if one of the configurations isn't functional. Keep going. HOT 3
- Configuration: • Limit the client body (use: curl -X POST -H "Content-Type: plain/text" --data "BODY IS HERE write something shorter or longer than body limit"). HOT 2
- test root test return
- Download 3,9GB Data from the server
- Siege & stress test: Verify there is no memory leak (Monitor the process memory usage. It should not go up indefinitely). HOT 2
- Siege & stress test: Check if there is no hanging connection. HOT 1
- Ask what function the group used for I/O Multiplexing.
- • Ask if they use only one select() (or equivalent) and how they've managed the server to accept and the client to read/write.
- [MY NOT IMPORTANT] The select() (or equivalent) should be in the main loop and should check file descriptors for read and write AT THE SAME TIME. If not, the grade is 0 and the evaluation process ends now.
- [NOT IMPONTANT ONLY FOR ME] • There should be only one read or one write per client per select() (or equivalent). Ask the group to show you the code from the select() (or equivalent) to the read and write of a client.
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 webserv.