# Problems while running web servers

**URL:** <https://get-help.theconstruct.ai/t/problems-while-running-web-servers/19214>\
**Category:** Developing Web Interfaces For ROS\
**Created:** [September 13, 2022, 4:38am UTC](https://get-help.theconstruct.ai/t/problems-while-running-web-servers/19214 "2022-09-13T04:38:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![talhawahab1947](https://get-help.theconstruct.ai/letter_avatar_proxy/v4/letter/t/a6a055/32.png) [@talhawahab1947](https://get-help.theconstruct.ai/u/talhawahab1947)\
**Post date:** [September 13, 2022, 4:38am UTC](https://get-help.theconstruct.ai/t/problems-while-running-web-servers/19214/1 "2022-09-13T04:38:57Z")

</div>

Hello  
I am presently working/learning web interface development.  
However, I have been facing a problem since last week.The problem is that while running a web server once, even if I close the python web server and the web.launch application, and I move to another exercise (either previous or next), on running python server for another exercise, I find the webpage run for the last exercise.  
For example, if I once run the webpage of exercise 4, and then I run exercise 5 or 3, I still see the web page of exercise 4.  
Which ever directory I go and run the python web server, I only see the web interface created for exercise 4.  
Please indicate the error and suggest the remedy.  
Regards  
Is there some problem with server?

---

<div class="post-metadata">

**Author:** ![bayodesegun](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/bayodesegun/32/10684_2.png) [@bayodesegun](https://get-help.theconstruct.ai/u/bayodesegun)\
**Post date:** [September 13, 2022, 10:20am UTC](https://get-help.theconstruct.ai/t/problems-while-running-web-servers/19214/2 "2022-09-13T10:20:29Z")

</div>

I can confirm that this is working properly, if you follow this guideline:

- Stop the web server for the previous unit.
- Make a folder for the unit and create/copy the `index.html` file (it must have this exact name) in it, and
- Start the web server in the same folder.
- Finally switch from the webpage tab to the IDE tab and back to refresh the webpage tab.

```auto
# Example
cd ~webpage_ws
mkdir unit_04
cd unit_04
# create or copy the index.html file here. 
# It must be named exactly `index.html`
touch index.html
python -m SimpleHTTPServer 7000

```

**PS** : You are expected to have only one `index.html` file per unit. In some cases, you will start a new unit by copying the `index.html` of the previous unit. As you work along the units, you will make changes to this file until it becomes a full-fledged application!
