LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Apache (https://www.linuxquestions.org/questions/linux-newbie-8/apache-697387/)

michaelsule 01-14-2009 09:02 PM

Apache
 
1. to test a web server which is hosting the virtual host, using only telnet, what would you type at the telnet prompt?

2. what fields would you expect to have to define in a Virtual-Host definition in apache?

3. Apache runs as a user, usually "Apache" or "httpd". For apache to serve a file from a user's public_html directory, what permissions would be required?

yzhong 01-14-2009 09:27 PM

1.You can use telnet domainname 80
2.NameVirtualHost *:80 plus something like the following
<VirtualHost *:80>
ServerName xxxx
DocumentRoot xxxx
<Directory "xxxx">
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
3.read permissions

Cottsay 01-14-2009 09:35 PM

yzhong is correct, but if you are using PHP, you might need execute permissions, too...if I'm not mistaken.

--scott

Wim Sturkenboom 01-15-2009 01:19 AM

Homework :confused:


All times are GMT -5. The time now is 01:11 AM.