Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
webserver [2025/02/14 16:35] – created rishabhstein | webserver [Unknown date] (current) – external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
Being a linux user, I am familiar with two webservers: [Apache](http:// | Being a linux user, I am familiar with two webservers: [Apache](http:// | ||
- | [Apache](http:// | + | [Apache](http:// |
- | * "/ | + | * "sudo vim / |
The easies way is to copy " | The easies way is to copy " | ||
Line 10: | Line 10: | ||
- DocumentRoot / | - DocumentRoot / | ||
- | < | + | |
- | | + | Options Indexes FollowSymLinks |
- | | + | AllowOverride All |
- | Require all granted | + | Require all granted |
- | </ | + | </ |
- To execute CGI, I didnt understand how to do it | - To execute CGI, I didnt understand how to do it | ||
- For " | - For " | ||
- | | + | |
- | Options FollowSymLinks | + | Options FollowSymLinks |
- | DirectoryIndex index.php | + | DirectoryIndex index.php |
- | AllowOverride All | + | AllowOverride All |
- | </ | + | </ |
- | + | ||
+ | Now the settings are ready to enable the website. It is important to disable default one as the " | ||
+ | * sudo a2dissite 000-default.conf | ||
+ | and to enable the created website. | ||
+ | * sudo a2ensite vitualcase.conf | ||
+ | |||
+ | After setting up, the most important thing is to check permission of the directory especially if apache gives 404 error. | ||
| | ||