Sign Up

welcome

Already have an account? Sign In

Sign In

welcome

Sign Up
Login with Google

Don't have account, Sign Up Here
Sign In Sign Up

letsrectify

letsrectify
  • Home
  • About Us
  • Contact Us
  • Jobs
Ask a Question
Home
aman
Asked: 27-09-24

how to remove directory folder from url in aws ec2 ubuntu?

  • 0

Open the Default Virtual Host File

The default virtual host configuration file for Apache is usually located at /etc/apache2/sites-available/000-default.conf. You can open it using a text editor like nano . Here’s how to do it with nano:

sudo nano /etc/apache2/sites-available/000-default.conf

 

add this in your virtual host 

<VirtualHost *:80>

   ServerName your-domain.com

   DocumentRoot /path/to/your/application/public

   <Directory /path/to/your/application/public>

       Options Indexes FollowSymLinks

       AllowOverride All

       Require all granted

   </Directory>

   ErrorLog ${APACHE_LOG_DIR}/error.log

   CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

then restart apache2

sudo systemctl restart apache2

 

Share
  • Facebook

0 More Answers

  • Answers
Cancel reply

Sidebar

Ask A Question
letsrectify

Categories

  • Technology
  • Food
  • Health
  • Sports
  • Science
  • Politics
  • Marketing

Policies

  • Terms & Conditions
  • Privacy Policy

About Us

  • About Us
  • Contact Us
  • Feedback

© 2025 All Rights Reserved by
Letsrectify.com