Site pve-redirect.conf does not exist!

  • Thread starter Thread starter .Joel
  • Start date Start date
Hi Guys,

I followed a fresh install of Proxmox 2 last night ( http://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_Squeeze ) and upon following the Wiki I tried this:

Code:
a2ensite pve-redirect.conf

Which results in the following error:



Any help or advice appreciated.
Hi,
you can reach the webfrontend directly with https://IP.OF.NO.DE:8006
For the redirection create the file /etc/apache2/sites-available/pve-redirect.conf with following content
Code:
<VirtualHost *:80>
    #RewriteLog "/root/rewrite.log"
    #RewriteLogLevel 10
    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
    RewriteRule ^/(.*) https://%{HTTP_HOST}:8006/$1 [L,R]
</VirtualHost>

<VirtualHost *:443>
    SSLEngine on
    SSLProtocol all -SSLv2
    SSLCertificateFile /etc/pve/local/pve-ssl.pem
    SSLCertificateKeyFile /etc/pve/local/pve-ssl.key

    RewriteEngine on
    RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
    RewriteRule .* - [F]
    RewriteRule ^/(.*) https://%{HTTP_HOST}:8006/$1 [L,R]
</VirtualHost>
and create an link:
Code:
cd /etc/apache2/sites-enabled
ln -s ../sites-available/pve-redirect.conf .
Udo
 
Hi the files are there but named pve-redirect.conf.dpkg-new or something similar sorry forgot.
Also a2enmod ssl and rewrite needs to be run or you get errors.
The the pem certs are missing aswell ?

Stuart