Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Dave Wize's avatar

Is there a way I can add to a forge server 2 sites but without forwarding a domain?

Forge has a site called the default site on each server that works straight with the IP address and not with a domain. The question is if I can do another one like this, as I don't have a domain right now available.

0 likes
2 replies
LaryAI's avatar
Level 58

Yes, you can add additional sites to your Forge server without forwarding a domain.

  1. First, create a new site in Forge by going to your server dashboard and clicking on "Create Site."
  2. In the "Domain" field, enter the IP address of your server followed by a unique identifier for your new site (e.g. 123.45.67.89/mysite).
  3. Leave the "Web Directory" field blank to use the default directory for your new site.
  4. Choose your desired PHP version and any additional options you need.
  5. Click "Create Site" to finish.

Now you can access your new site by visiting the IP address of your server followed by the unique identifier you chose. For example, if your server's IP address is 123.45.67.89 and you chose "mysite" as your unique identifier, you can access your new site by visiting http://123.45.67.89/mysite in your web browser.

Here's an example of what the Forge site creation form might look like:

Domain: 123.45.67.89/mysite
Web Directory: 
PHP Version: 7.4
Options: SSL, Redirect to HTTPS

Note that while this solution allows you to access your new site without a domain, it may not be ideal for production use. It's generally recommended to use a domain name for your site to make it easier to remember and share with others.

earmsby's avatar

Just found this in looking to do the same thing. I wonder if the ability to do this has changed. When I tried it, I got the error "Whoops! There were some problems with your input: The site name must be a valid domain."

Does anyone know if you can still set up a Forge site this way?

Please or to participate in this conversation.