Sta ce tebi ovo:
Citat:
NameVirtualHost 212.39.98.132
<VirtualHost 212.39.98.132>
ServerAdmin
[email protected]
DocumentRoot /home/korisnik/public_html
ScriptAlias /cgi-bin/ "/usr/users/weimenik/cgi-bin/"
ServerName 212.39.98.132/korisnik
ErrorLog logs/212.39.98.132-error_log
CustomLog logs/212.39.98.132-access_log combined
</VirtualHost>
?
Tebi nije potreban virtuelani web server (bar ne zasad) - sve ti lepo ovo komentarisi sa # ispred (ionako nije ispravno napisano).
Ovaj deo:
Citat:
<IfModule mod_userdir.c>
UserDir public_html
</IfModule>
#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
#<Directory /home/*/public_html>
# AllowOverride FileInfo AuthConfig Limit
# Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
# <Limit GET POST OPTIONS PROPFIND>
# Order allow,deny
# Allow from all
# </Limit>
# <LimitExcept GET POST OPTIONS PROPFIND>
# Order deny,allow
# Deny from all
# </LimitExcept>
#</Directory>
promeni u:
Code:
<IfModule mod_userdir.c>
UserDir public_html
</IfModule>
#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
Sta ce ti ovo:
Citat:
<Directory "/usr/users/korisnik">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
? Obrisi ili komentarisi to.
Dalje, da li znas gde treba da smestas fajlove? Evo:
DocumentRoot "/usr/local/apache2/htdocs" - znaci u ovom direktorijumu da smestis index.html, on ce se prikazati na
http://212.39.98.132/
Ako odes na
http://212.39.98.132/~korisnik/ - trebalo bi de ti prikaze index.html sto imas u /home/korisnik/pblic_html/
Ako odes na
http://212.39.98.132/korisnik, a deifinisala si onaj simbolicki link, onda opet treba da ti prikaze isti index.html kao malopre.
Proveri da li ti je dobra konfiguracija:
/etc/init.d/apache2 configtest (valjda ovako ide)
ili probaj : apachectl configtest ili apache2ctl configtest, treba da dobijes nesto ovako:
Code:
# apachectl configtest
Syntax OK
Restartuj apache. Vidi da li se sad vidi kako treba.
Ovaj IP 212.39.98.132 - da li si ti to tek tako stavila ili si dobila od nekog IP adresu da stavis?
Za error logove gledaj ovaj fajl koji ti je definisan:
ErrorLog /usr/local/apache2/logs/error_log
Toliko zasad. Promeni ovo pa da vidimo sta se sad desava.
Kad sve ostalo zakaže, pročitaj uputstvo...