# Add and Manage Websites
ServBay provides a user-friendly interface for adding and managing websites. You can follow these steps to add a website.
# Add a Website
Open the ServBay.
Click on "Hosts" in the left navigation bar.
On the website list page, click the "+" button at the bottom to enter the add website page.
In the add website form, fill in the following information:
- Name: Give the website a recognizable title for easy identification.
- Enter a registered domain, an unregistered domain, or even a non-existent domain.
- If you want someone to be able to access the site via internet/LAN, enter a registered domain, ensure that the IP address points to the current device, and make sure the firewall ports(80/443) are open.
- ServBay Free Plan users can only enter one domain, while ServBay Pro and ServBay Team Plan users can enter multiple domains separated by spaces.
- Web Protocol: Select the protocol for the services provided by the website, such as HTTP & HTTPS (default), HTTPS only, or HTTP only.
- HTTP/HTTPS Port: ServBay Pro and ServBay Team users can customize the ports for HTTP/HTTPS; ServBay Free users can only use the default settings.
- SSL Request Method: Select the issuance method of the SSL certificate.
- Self-signed: Use the ServBay Local CA to issue a self-signed certificate (default), recommended in most cases.
- Caddy: Issue the certificate through Caddy's ACME, supporting Let's Encrypt and ZeroSSL. If using this method, you need to enter an email to receive verification emails, and ensure that the IP address pointed to by the domain is accessible from the Internet, and ports 80 and 443 are open in the firewall.
- Custom: Use SSL certificates obtained from a third party. You must first obtain a valid SSL certificate from a certificate authority (CA). Also, specify the .key and .pem/.crt files of the SSL certificate in the input box.
- Host Type: Select the type of service the website provides.
- PHP: The website runs PHP code. Select a PHP version that has been installed and enabled in "Service Management."
- Static: Provides static pages, does not allow any dynamic scripts, e.g., pure HTML web pages, static files.
- Redirection: Redirects to another URL using the 301 or 302 method.
- Reverse Proxy: Allows mapping ports of other services to the current device or proxying the website of other servers.
- If you are proxying a local service, enter 127.0.0.1 as the IP address and the port of the service.
- If you are proxying a service on another device in the local network, enter the IP address of the device and the port of the service.
- If you are proxying a website on the internet, enter the IP address of the website and the port you want to proxy.
- When proxying an internet website to localhost, enter the same domain as the website being proxied in the "Domain" field.
- Root Directory: The default path is
/Applications/ServBay/www/, and you can create a subdirectory for each website.
- Click the "Add" button to save.
# Custom Configuration (Advanced Users)
If you are an advanced user and want to customize the configuration file, you can check the "Custom Configuration" checkbox and enter configuration sections that comply with the Caddyfile standard in the appearing input box.
- After configuring everything correctly, open a browser, enter the domain you just added, and you should be able to access the website.
- After adding a website, you can further manage and operate it on the "Hosts".