Shellsec

Fuld version: VirtualHost (Apache)
Du ser lige nu en skrabet udgave af vores indhold. Se den fulde version med ordentlig formatering.
Skulle det ikke bare være sådan her? 8 (ca)

<VirtualHost *:80>
DocumentRoot /var/www/test.freeip.dk/
<Directory "/var/www/test.freeip.dk">
allow from all
Options +Indexes
</Directory>
ServerName test.freeip.dk
</VirtualHost>
Mine ser sådan her ud:
Kode:
<VirtualHost *:80>
        RewriteEngine On
        ServerAdmin webmaster@domain.net
        DocumentRoot /var/www
        ServerName domain.net
        ServerAlias www.domain.net
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/>
                Options -Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        FcgidMaxRequestLen 2000000

        ErrorLog ${APACHE_LOG_DIR}/error.log
        LogLevel warn
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Husk at sætte NameVirtualHost *:80 i ports.conf eller bare i httpd.conf hvis du har den gamle Apache opsætning.
(04-03-2014, 09:11)Doctor Blue Skrev: [ -> ]Mine ser sådan her ud:
Kode:
<VirtualHost *:80>
        RewriteEngine On
        ServerAdmin webmaster@domain.net
        DocumentRoot /var/www
        ServerName domain.net
        ServerAlias www.domain.net
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/>
                Options -Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

        FcgidMaxRequestLen 2000000

        ErrorLog ${APACHE_LOG_DIR}/error.log
        LogLevel warn
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Husk at sætte NameVirtualHost *:80 i ports.conf eller bare i httpd.conf hvis du har den gamle Apache opsætning.

ved ikke hvad fan, jeg fik lavet, men nu virker det :)