joswa / mongoose

Automatically exported from code.google.com/p/mongoose
MIT License
0 stars 0 forks source link

Example conf file doesn't use new option names => doesn't work #249

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use the example mongoose.conf file linked from the home page 
(http://mongoose.googlecode.com/svn/trunk/win32/mongoose.conf)
2. Start Mongoose
3.

What is the expected output? What do you see instead?
Expected Mongoose to start. Instead I get an error message saying "Failed to 
start Mongoose. Maybe some options are assigned bad values?"

What version of the product are you using? On what operating system?
2.11

Please provide any additional information below.
Correct option names found here: 
http://code.google.com/p/mongoose/wiki/MongooseManual
... and a working example file would look like this (haven't been through _all_ 
the option names):

# Mongoose web server configuration file.
# Lines starting with '#' and empty lines are ignored.
# For detailed description of every option, visit
# http://code.google.com/p/mongoose/wiki/MongooseManual

document_root   c:\

listening_ports 80,443s
access_log_file c:\mongoose_access_log.txt
error_log_file  c:\mongoose_error_log.txt

# NOTE FOR PHP USERS:
# Correct PHP binary to use is php-cgi.exe, NOT php.exe!
# cgi_interpreter c:\php\php-cgi.exe
# cgi_interpreter c:\perl\bin\perl.exe

# cgi_extensions  cgi,pl,php
# ssi_extensions  shtml,shtm
# authentication_domain mydomain.com
# enable_directory_listing no
# index_files   index.html,index.htm,index.php,index.cgi
# aliases   /my_d_disk=d:\,/my_e_disk=e:\
# acl           -0.0.0.0/0,+10.0.0.0/8,+192.168.0.0/16
# admin_uri     /remote_admin
# protect       /remote_admin=c:\passwords.txt
# cgi_env       FOO=BAR,BAZ=POO
# auth_gpass    c:\mongoose_global_web_passwords.txt
# auth_PUT      c:\mongoose_put_delete_passwords.txt
# ssl_cert      ssl_cert.pem
# max_threads   100
# idle_time 10

/John

Original issue reported on code.google.com by john.wil...@gmail.com on 18 Apr 2011 at 8:16

GoogleCodeExporter commented 9 years ago
John,

Mongoose will not run listening at port 80 on command line. You can change port 
80 to port 8080 or set mongoose as startup net service.

To set mongoose as startup service, follow the next steps:
1) delete the mongoose.conf file
2) run mongoose.exe
3) right click the mongoose icon in the tray bar
4) select 'Install'
5) edit and save te desired mongoose.conf file
6) restart PC
7) check mongoose is running by ctrl-alt-del

Regards,
Rolf

Original comment by r.nooteb...@gmail.com on 18 Apr 2011 at 8:50

GoogleCodeExporter commented 9 years ago
Rolf,

You're (probably) right. I'm not running port 80. I just pasted a copy of the 
example file http://mongoose.googlecode.com/svn/trunk/win32/mongoose.conf with 
corrected option names. Mongoose's example file has port "80,443s".

Regards, John

Original comment by john.wil...@gmail.com on 18 Apr 2011 at 8:55

GoogleCodeExporter commented 9 years ago
Removed link to the obsolete mongoose.conf from the home page.
Note that step  6 in Rolf's suggestion could be replaced with "restart Mongoose 
service" step. 

Original comment by valenok on 22 Jun 2011 at 11:14

GoogleCodeExporter commented 9 years ago

Original comment by valenok on 22 Jun 2011 at 11:15

GoogleCodeExporter commented 9 years ago
Rolf, you say mongoose will not run listening on port 80, why is that?
On my Windows laptop I used mongoose on port 80 all the time, on a mac mongoose 
just won't start if I change config file to listen on port 80. But I really 
would like to use that port, because why not? I have a list of bookmarks that 
are kept in sync in Chrome between two OSes and those bookmarks don't work on a 
mac, because Mongoose won't run if configured to use.

Original comment by vitalyx on 22 Dec 2013 at 9:27

GoogleCodeExporter commented 9 years ago
Mac is UNIX based system. On UNIX, all ports numbers less then 1024 are 
reserved and require root access.
Windows is not a UNIX based system and does allow any program listening on any 
port.

Original comment by valenok on 23 Dec 2013 at 5:04

GoogleCodeExporter commented 9 years ago
valenok, thank you. That explains everything.

Original comment by vitalyx on 1 Jan 2014 at 4:10