On Thu, 28 Dec 2000, Arny wrote:
> vreau sa stiu si eu cum pun o pagina de web pe un server (de test numai sa
> am si eu habar ) am pagina gata facuta numai ca nu stiu unde sa il pun ,,,
> ii dau drumu la httpd ,porneste da ... pajina nu stiu unde sa o mut
> danke
deci pagina ti-o pui unde vrei. Numai ca tre sa-i zici apache-ului de unde
sa o ia.
De ex:
sa zicem ai contul apache cu home dir numit <director_apache>
<director_apache> poate fi ori /home/httpd ori /home/www .. vezi si tu la
un finger -mp apache sau ce user iti ruleaza serveru de web ce home dir
are.
Apoi modifici in /etc/httpd/conf/httpd.conf
DocumentRoot "<director_apache>/html"
<Directory "<director_apache>/html">
Options Indexes Includes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Alias /icons/ "<director_apache>/icons/"
<Directory "<director_apache>/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ "<director_apache>/cgi-bin/"
<Directory "<director_apache>/cgi-bin">
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
Apoi,
find <apache_dir>/html -type f -exec chmod 644 {} \;
find <apache_dir>/icons -type f -exec chmod 644 {} \;
find <apache_dir>/cgi-bin -type f -exec chmod 644 {} \;
find <apache_dir>/html -type d -exec chmod 755 {} \;
find <apache_dir>/icons -type d -exec chmod 755 {} \;
find <apache_dir>/cgi-bin -type d -exec chmod 755 {} \;
/etc/rc.d/init.d/http restart
lynx localhost
:)
--
Ionut Murgoci
Network and System Admin
Computer Highschool - Iasi
---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to
unsubscribe from this list.