Releases: shefben/stmsrvemu
Apache webserver Beta 3
Added index.php to the autoindex
Apache/php beta 2
This version has extra apache modules aded:
- mod_qos
- mod_security2
- mod_xsendfile
- mod_evasive
This should help mitigate malicious actors from ruining your fun.
Also added emulator.ini with the changes for running the webserver. Keep in mind if you use PMEINS stmserver, just copy these configs to your emulator.ini instead of replacing the emulator.ini:
; WebServer
;======================
[email protected] ; Email Address given during webpage errors
http_disable=False ; Enable/Disable Webserver (http/https)
http_ip=127.0.0.1 ; IP used for http binding
http_port=80 ; Port used for http binding
http_maxconnections=20 ; Maximum Simultaneus connections
http_signature="Steam Emulation Network" ; Signature sent in http header to client
[webserver] Apache 2.4 / PHP 8.2.9 server package
This is the actual webserver software that launch_webserver.py uses to start a web server.
This package contains:
- apache 2.4
- PHP 8.2.9
- sample steam website (from XJR)
It was tested and works with both python 3.9 and python 2.7.
Installation:
To install: extract the zip into the StmServer root folder (the folder that contains emulator.bat/exe/py.
How to use:
- Grab the files: httpd.py, launch_webserver.py, launch_webserver.bat and check4redist.py
- Put those files in the same folder that you extracted this zip file into (put those py and bat files in the same directory as the /files/ directory, NOT inside /files/)
- open launch_webserver.bat or open a console in the main StmServer folder and type:
python launch_webserver.py
Some quick notes:
-
Apache and PHP Both require Microsoft C++ runtime redistributables version 16 and 17.
- The server will check for the x64 version of the redistributable files before launching.
- If the redistributable runtime is not installed, it will open your default browser directly to the Microsoft website to download the redistributable, otherwise it will continue launching the webserver.
- The server will check for the x64 version of the redistributable files before launching.
-
The python scripts that launch apache modifies the httpd.conf file automatically.
-
You do NOT need to change any configuration options in PHP or Apache.
-
The htdocs/website folder is under /files/webroot
-
apache's default port is set to 80. Do NOT enable SSL unless you are using a steam version 2010 or newer. Older steam versions (before 2010) do NOT support SSL.