[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
howtos:network_services:setup_apache [2018/12/23 21:45 (UTC)] – [USER DIRECTORIES] Formatting ellendhel | howtos:network_services:setup_apache [2018/12/23 21:51 (UTC)] – [VHOSTS WITH INDIVIDUAL CGI-BIN DIRECTORIES] Formatting ellendhel | ||
---|---|---|---|
Line 82: | Line 82: | ||
- | ====== | + | ====== |
- | This enables CGI script execution on your webserver. | + | |
+ | This enables CGI script execution on your webserver. | ||
- | 1) Edit / | + | Edit / |
< | < | ||
Line 107: | Line 107: | ||
</ | </ | ||
- | 2) Restart Apache | + | Restart Apache |
< | < | ||
**HINT:** Your cgi-bin directory will be / | **HINT:** Your cgi-bin directory will be / | ||
- | EXAMPLE: \\ | + | Example: < |
- | http:// | + | |
| | ||
- | **NOTE: This does not apply to php scripts, see the below for them.** | + | **NOTE**: This does not apply to PHP scripts, see the below for them. |
| | ||
- | ====== | + | ====== |
- | This will allow users to run CGI scripts out of their / | + | |
- | EXAMPLE: | + | This will allow users to run CGI scripts out of their /home/user/public_html/ |
- | http://www.slackware.com/~pat/cgi-bin/webform.pl | + | |
- | 1) Setup CGI-BIN as described above. | + | Example: < |
- | 2) Edit / | + | Setup CGI-BIN as described above. |
+ | |||
+ | Edit / | ||
< | < | ||
Line 135: | Line 134: | ||
</ | </ | ||
- | 3) Restart Apache | + | Restart Apache |
< | < | ||
- | ====== | + | ====== |
[[howtos: | [[howtos: | ||
- | ====== | + | ====== |
- | 1) Edit / | + | |
+ | Edit / | ||
< | < | ||
Line 147: | Line 148: | ||
Include / | Include / | ||
- | 2) Edit / | + | Edit / |
< | < | ||
Line 169: | Line 170: | ||
</ | </ | ||
- | 3) Restart Apache | + | Restart Apache |
< | < | ||
- | **NOTE:** I run my vhosts as users so, the document roots are under /home/USER directories. | + | **NOTE:** I run my vhosts as users so, the document roots are under /home/user directories. |
+ | |||
+ | Example: | ||
+ | |||
+ | / | ||
+ | / | ||
- | EXAMPLE: \\ | + | **NOTE 2:** These do not affect your default webserver setting in /etc/httpd/httpd.conf. That web server instance will still work and be the default if a plain IP in used as the URL. |
- | /srv/www/htdocs/ | + | |
- | / | + | |
- | etc... \\ | + | |
- | **NOTE2:** These do not affect your default webserver setting in / | ||
+ | ====== Vhosts with individual CGI-BIN directories ====== | ||
- | ====== VHOSTS WITH INDIVIDUAL CGI-BIN DIRECTORIES ====== | + | If you have virtual hosts that need CGI (or need CGI in their own directory) you can do it like this: |
- | If you have virtual hosts that need cgi (or need cgi in their own directory) you can do it like this: | + | |
- | 1) Edit / | + | Edit / |
< | < | ||
Line 194: | Line 196: | ||
</ | </ | ||
- | 2) Restart Apache | + | Restart Apache |
< | < | ||