Skip to main content
added 8 characters in body
Source Link
Braiam
  • 36.9k
  • 29
  • 114
  • 176

You need to follow some steps, like there must be one more directory named as sites-available in /etc/httpd. So you need to create a file with any name in sites-available and then you need to run below command. No need to use .conf as an extension for this file.

$ a2ensite (your file name)

$ a2ensite (your file name)

for example, suppose you have created a file named as abc then your command must be

$ a2ensite abc

$ a2ensite abc

This command will create a symbolic link in /etc/httpd/site-enabled directory. Then you can run a command to check syntax and get that site up on your browser.

You need to follow some steps, like there must be one more directory named as sites-available in /etc/httpd. So you need to create a file with any name in sites-available and then you need to run below command. No need to use .conf as an extension for this file.

$ a2ensite (your file name)

for example, suppose you have created a file named as abc then your command must be

$ a2ensite abc

This command will create a symbolic link in /etc/httpd/site-enabled directory. Then you can run a command to check syntax and get that site up on your browser.

You need to follow some steps, like there must be one more directory named as sites-available in /etc/httpd. So you need to create a file with any name in sites-available and then you need to run below command. No need to use .conf as an extension for this file.

$ a2ensite (your file name)

for example, suppose you have created a file named as abc then your command must be

$ a2ensite abc

This command will create a symbolic link in /etc/httpd/site-enabled directory. Then you can run a command to check syntax and get that site up on your browser.

Source Link
Nitesh B.
  • 593
  • 2
  • 7
  • 20

You need to follow some steps, like there must be one more directory named as sites-available in /etc/httpd. So you need to create a file with any name in sites-available and then you need to run below command. No need to use .conf as an extension for this file.

$ a2ensite (your file name)

for example, suppose you have created a file named as abc then your command must be

$ a2ensite abc

This command will create a symbolic link in /etc/httpd/site-enabled directory. Then you can run a command to check syntax and get that site up on your browser.