View previous topic :: View next topic |
Author |
Message |
danielinux Apprentice
Joined: 10 Nov 2004 Posts: 202
|
Posted: Mon Nov 10, 2008 10:37 pm Post subject: ajaxterm |
|
|
Salve ragazzi,
Avendo la necessità di avere un terminale tramite web, mi sono imbattuto nel seguente programmino.
In locale è ok, ma quando devo configurare apache per poter effettuare la connessione da altri client mi perdo!
Esiste il seguente wiki http://wiki.kartbuilding.net/index.php/Ajaxterm ma la configurazione dell'apache sembra molto differente da quella che ho trovato su un topic di questo forum https://forums.gentoo.org/viewtopic-t-703912-highlight-ajaxterm.html.
Nel file /etc/conf.d/apache2 ci sono abilitate le seguenti opzioni:
Code: |
APACHE2_OPTS="-D DEFAULT_VHOST -D INFO -D LANGUAGE -D MANUAL -D SSL -D SSL_DEFAULT_VHOST -D SUEXEC -D PHP5 -D USERDIR -D PROXY -D PROXY_HTML"
|
Il file /etc/apache2/vhosts.d/00_default_vhost.conf
Code: |
<IfDefine DEFAULT_VHOST>
Listen 80
# Use name-based virtual hosting.
NameVirtualHost *:80
<VirtualHost *:80>
ServerName localhost
Include /etc/apache2/vhosts.d/default_vhost.include
<IfModule mpm_peruser_module>
ServerEnvironment apache apache
</IfModule>
#Redirect scritto dopo aver installato ajaxterm
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule ^/(.*) https://%{SERVER_NAME}%{REQUEST_URI} [R]
</VirtualHost>
</IfDefine>
|
File /etc/apache2/vhosts.d/00_default_ssl_vhost.conf
Code: |
<IfDefine SSL>
<IfDefine SSL_DEFAULT_VHOST>
<IfModule ssl_module>
Listen 443
<VirtualHost _default_:443>
ServerName localhost
Include /etc/apache2/vhosts.d/default_vhost.include
ErrorLog /var/log/apache2/ssl_error_log
<IfModule log_config_module>
TransferLog /var/log/apache2/ssl_access_log
</IfModule>
## SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on
## SSL Cipher Suite:
# List the ciphers that the client is permitted to negotiate.
# See the mod_ssl documentation for a complete list.
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /etc/apache2/ssl/server.crt
SSLCertificateKeyFile /etc/apache2/ssl/server.key
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory "/var/www/localhost/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
<IfModule setenvif_module>
BrowserMatch ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</IfModule>
## Per-Server Logging:
# The home of a custom SSL log file. Use this when you want a compact
# non-error SSL logfile on a virtual host basis.
<IfModule log_config_module>
CustomLog /var/log/apache2/ssl_request_log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</IfModule>
# Scritto dopo aver installato Ajaxterm
ProxyRequests On
<Proxy *>
AuthType Basic
AuthName "remote shell access"
AuthUserFile /etc/apache2/htpasswd
Require valid-user
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://localhost:8022/
ProxyPassReverse / http://localhost:8022/
</VirtualHost>
</IfModule>
</IfDefine>
</IfDefine>
|
Una volta avviato /etc/init.d/ajaxterm , provo a connettermi da un altra macchina che non sia localhost, ma la connessione fallisce come se la pagina non esistesse
Potreste aiutarmi a configurare il muio apache? _________________ I've seen things you people wouldn't believe.
Attack ships on fire off the shoulder of Orion.
I watched C-beams glitter in the dark near the Tannhauser gate.
All those moments will be lost in time, like tears in rain.
Time to die. |
|
Back to top |
|
|
danielinux Apprentice
Joined: 10 Nov 2004 Posts: 202
|
Posted: Wed Nov 12, 2008 12:59 pm Post subject: |
|
|
Ho visto che il file /etc/apache2/htpasswd citato nel file /etc/apache2/vhosts.d/00_default_ssl_vhost.conf non è presente nel mio sistema.
Che sia per questo motivo ?
Prorpio nessuno sa aiutarmi? _________________ I've seen things you people wouldn't believe.
Attack ships on fire off the shoulder of Orion.
I watched C-beams glitter in the dark near the Tannhauser gate.
All those moments will be lost in time, like tears in rain.
Time to die. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|