# Jekyll Newbie - Deployting to MAMP - but still localhost:4000

**URL:** <https://talk.jekyllrb.com/t/jekyll-newbie-deployting-to-mamp-but-still-localhost-4000/9961>\
**Category:** Help\
**Created:** [May 16, 2025, 10:59pm UTC](https://talk.jekyllrb.com/t/jekyll-newbie-deployting-to-mamp-but-still-localhost-4000/9961 "2025-05-16T22:59:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ritgrad83](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/ritgrad83/32/6334_2.png) [@ritgrad83](https://talk.jekyllrb.com/u/ritgrad83)\
**Post date:** [May 16, 2025, 10:59pm UTC](https://talk.jekyllrb.com/t/jekyll-newbie-deployting-to-mamp-but-still-localhost-4000/9961/1 "2025-05-16T22:59:17Z")

</div>

Hello - I am a newbie - just started playing around with Jekyll after trying HUGO. I went through the tutorial - [Setup | Jekyll • Simple, blog-aware, static sites](https://jekyllrb.com/docs/step-by-step/01-setup/) - and was able to install and launch site no issues. I am running on Mac OSX (Mini) Sequoia. Everything is grand until I deployed the \_site folder contents from Jekyll to a subfolder on the MAMP server. Both MAMP and Jekyll are on the same local machine.

I copied and pasted the \_site contents to the named jekyll\_site. When I go to localhost:8888 on MAMP - I get the Index Of/ page showing all my other folders in the root of the MAMP server including the Jekyll folder (this was intentional as I have other projects in other folders). When I select the Jekyll folder - the index.html page launches - but the other pages linked from the navigattion built in the tutorial says page not found. It seems that whenever I try to link to other pages in the Jekyll \_site contents on MAMP. -it thinks it is still in 127.0.0.0:4000 not localhost:8888.

I missed something somewhere - is there a configuration or something I need?

Any help most appreciated!

---

<div class="post-metadata">

**Author:** ![jhvanderschee](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/jhvanderschee/32/583_2.png) [@jhvanderschee](https://talk.jekyllrb.com/u/jhvanderschee)\
**Post date:** [May 17, 2025, 7:05am UTC](https://talk.jekyllrb.com/t/jekyll-newbie-deployting-to-mamp-but-still-localhost-4000/9961/2 "2025-05-17T07:05:33Z")

</div>

Jekyll has its own webserver, no need to run mamp.

---

<div class="post-metadata">

**Author:** ![chuckhoupt](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/chuckhoupt/32/523_2.png) [@chuckhoupt](https://talk.jekyllrb.com/u/chuckhoupt)\
**Post date:** [May 17, 2025, 2:55pm UTC](https://talk.jekyllrb.com/t/jekyll-newbie-deployting-to-mamp-but-still-localhost-4000/9961/3 "2025-05-17T14:55:04Z")

</div>

To serve the site in MAMP from the URL `/jekyll_site` you would need to set the `baseurl` variable in `_config.yml`. I.e.:

```yaml
baseurl: /jekyll_site

```

By default, Jekyll builds sites to be served from the root of the web-server (i.e. `baseurl` defaults to the empty string). If the files in `_site` are moved to a sub-directory, then links will break. For example, Jekyll will use `/about/` as the default URL for the About page, but MAMP is serving that page at `/jekyll_site/about/`, thus the result is a 404.
