K
K
Konstantin Frolov2012-04-29 13:21:48
Apache HTTP Server
Konstantin Frolov, 2012-04-29 13:21:48

Criticize the virtual host config?

I can’t launch the site on vds, I do it with the default file, it doesn’t want to work, it redirects to the domain to which Vds is attached.

&lt;VirtualHost *:80&gt;<br/>
 <br/>
 ServerName <a href="http://www.site.ru">www.site.ru</a><br/>
 ServerAlias site.ru *.site.ru<br/>
<br/>
ServerAdmin [email protected]<br/>
<br/>
DocumentRoot /sites/site/www<br/>
 &lt;Directory /&gt;<br/>
 Options FollowSymLinks<br/>
 AllowOverride all<br/>

<Directory /sites/site/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
ScriptAlias ​​/cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin" >
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values ​​include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
The site itself is a set of html files.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
Talismanium, 2012-04-29
@Talismanium

if a set of statics, why stutter about scripts?

P
patashnik, 2012-04-29
@patashnik

In which file is this configuration written? Perhaps it is not loaded at all during the start of apache.

R
Roman Domrachev, 2012-04-29
@MrLoki

And where in general though one closing of directives? Neither Directory nor VirtualHost are closed.
Why, by the way, cgi-bin? Is it being used?
To check the syntax, you can run Apache something like this:
Fedora :

#service httpd configtest

On Debian-based it seems to be something like:
#apache2 -t

The -S switch should also be interesting , which will show how the server parsed the config.
And of course the dock ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question