-
Open the terminal and run the following commands:
sudo apt update sudo apt install nginx
-
Clone the GitHub repository containing your website:
git clone https://github.com/abdelhak-zaaim/www.alkhaledfamily.com.git
-
Move the website files (HTML, CSS, JavaScript, and any other assets) to the appropriate location:
sudo mv your-repo/* /var/www/html
-
Set the correct ownership and permissions for the website directory:
sudo chown -R www-data:www-data /var/www/html sudo chmod -R 755 /var/www/html
-
Open the default Nginx configuration file:
sudo nano /etc/nginx/sites-available/default
Inside the file, replace the
server
block with the following configuration:server { listen 80; listen [::]:80;
root /var/www/html; index index.html index.htm; server_name your_domain.com; location / { try_files $uri $uri/ =404; }
}
Replace
your_domain.com
with your actual domain name or IP address.Test the Nginx configuration for any syntax errors:
sudo nginx -t
If everything is fine, you should see a "syntax is okay" message.
Restart Nginx to apply the changes:
sudo service nginx restart
Your website should now be accessible through your domain name or IP address. Open a web browser and enter your domain name or IP address to see your website.
alkhaled-family's Introduction
alkhaled-family's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.