- Joined
- Dec 10, 2010
- Messages
- 1
- Reaction score
- 0
- Points
- 1
Hi, ive been messing around with terminal and I saw this code that can set up a very simple server on your 8080 port
python -m SimpleHTTPServer 8080
And it works great and ive had fun messing around with it, but when i put an html file named index.htm or named anything else, the html code isn't translated into the page, it justs displays the code
i've navigated to the file
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/SimpleHTTPServer.py
and found that when I edit it, i can edit the html file that is the root directory when you start that server, the only thing is that I can't save the file as i dont have permission. Anyone have any tips?
python -m SimpleHTTPServer 8080
And it works great and ive had fun messing around with it, but when i put an html file named index.htm or named anything else, the html code isn't translated into the page, it justs displays the code
i've navigated to the file
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/SimpleHTTPServer.py
and found that when I edit it, i can edit the html file that is the root directory when you start that server, the only thing is that I can't save the file as i dont have permission. Anyone have any tips?