The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP server for modern operating systems including UNIX and Windows. The goal of this project is to provide a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards.
To deploy an Apache HTTP Server on Akash using Docker and Akash CLI, follow this step-by-step guide. We’ll use the official Apache Docker image and deploy it with Akash.
Prerequisites
- Install Akash CLI: Installation guide
- Set up an Akash Wallet: Wallet setup guide
- Fund your Wallet: Ensure your wallet is funded with AKT to cover deployment costs. Funding guide
- Basic SDL Knowledge: Understand how SDL files work for Akash deployments.
- Docker: Installed locally to test the Apache container.
Step 1: Create an SDL File
We’ll use the Apache HTTP Server official Docker image to create the SDL file. Here’s a sample deploy.yaml
:
Step 2a: Deploy Using Akash CLI (option)
-
Initialize Deployment:
-
Save the
deploy.yaml
file in your working directory. -
Run the following command to create the deployment:
-
-
Bid Selection:
- Monitor the bids for your deployment using:
- Accept a bid with:
-
Verify Lease:
- Confirm the lease creation with:
-
Access Deployment:
- Use the deployment’s external URI to access your Apache server.
Step 2b: Deploy Using Akash Console (alternative option)
-
Log In:
- Open the
Akash Console
.
- Open the
-
Upload SDL:
- Use the “Deploy” section and upload the
deploy.yaml
file.
- Use the “Deploy” section and upload the
-
Choose Configuration:
- Select preferred pricing and configuration options.
-
Deploy:
- Click “Deploy” and confirm using your wallet.
-
Monitor Deployment:
- Watch logs and deployment status directly from the console.
-
Access Deployment:
- Copy the public endpoint provided after deployment is complete.
Step 3: Test Your Apache HTTP Server
-
Access the Server:
- Open the external URI in your browser. You should see the default Apache HTTP Server page.
-
Custom Configuration:
- Modify configurations by creating a Dockerfile to include your custom
httpd.conf
and updating the image in the SDL.
- Modify configurations by creating a Dockerfile to include your custom
Useful Links
This guide ensures you have a functional Apache HTTP server running on Akash Network using either the CLI or the console.