i did a html demo,but only play locahost by SimpleHTTPServer, i can’t change the server ip and port.
1:i did a game demo by the SimpleHTTPServer. but the game only play by localhost, the url: localhost:8082/HtmlPro.html. i need run the SimpleHTTPServer in one server and play the demo in the other pc, how do i do ?
2: paly the demo use the url:127.0.0.1 by the SimpleHTTPServer, how did u do ?
3:if i use apache replace the SimpleHTTPServer, how to configue the apache?
the demo don’t play by the apache as the readme file configuration, the brower can’t decompression the gz file.
<Directory “${SRVROOT}/htdocs”>
AddEncoding gzip gz
</Directory>
1:before configuration:
<Directory />
AllowOverride none
Require all denied
</Directory> #LoadModule rewrite_module modules/mod_rewrite.so
2:after configuration
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
LoadModule rewrite_module modules/mod_rewrite.so
second i add the …htaccess in the game demo root directory and Add code file below to .htaccess file: