Enviado em 13/02/2013 - 17:13h
Pessoal, eu tinha um servidor apache2 e tava legal, ai tive que reinstalar o sistema e agora só fufa local, uso o no-ip, mas não vai, redirecionei o roteador para porta 8080, net virtua, mas não vai::hein:
hosts:
127.0.0.1 localhost
127.0.1.1 edvaldo-T-1628
192.168.0.100 servidormortean.zapto.org
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
httpd.conf:
<VirtualHost *>
DocumentRoot /var/www/meu
ServerName servidormortean.zapto.org:8080
#allow from all
#Options +Indexes
</VirtualHost>
default:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/meu
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ports.conf:
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz
NameVirtualHost *:80
Listen 80
Listen 8080
<IfModule mod_ssl.c>
# If you add NameVirtualHost *:443 here, you will also have to change
# the VirtualHost statement in /etc/apache2/sites-available/default-ssl
# to <VirtualHost *:443>
# Server Name Indication for SSL named virtual hosts is currently not
# supported by MSIE on Windows XP.
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
sudo /etc/init.d/apache2 restart
sudo: /var/lib/sudo writable by non-owner (040777), should be mode 0700
[sudo] password for edvaldo:
* Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
... waiting .apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[ OK ]
Grato:D
hosts:
127.0.0.1 localhost
127.0.1.1 edvaldo-T-1628
192.168.0.100 servidormortean.zapto.org
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
httpd.conf:
<VirtualHost *>
DocumentRoot /var/www/meu
ServerName servidormortean.zapto.org:8080
#allow from all
#Options +Indexes
</VirtualHost>
default:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/meu
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ports.conf:
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default
# This is also true if you have upgraded from before 2.2.9-3 (i.e. from
# Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
# README.Debian.gz
NameVirtualHost *:80
Listen 80
Listen 8080
<IfModule mod_ssl.c>
# If you add NameVirtualHost *:443 here, you will also have to change
# the VirtualHost statement in /etc/apache2/sites-available/default-ssl
# to <VirtualHost *:443>
# Server Name Indication for SSL named virtual hosts is currently not
# supported by MSIE on Windows XP.
Listen 443
</IfModule>
<IfModule mod_gnutls.c>
Listen 443
</IfModule>
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
sudo /etc/init.d/apache2 restart
sudo: /var/lib/sudo writable by non-owner (040777), should be mode 0700
[sudo] password for edvaldo:
* Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
... waiting .apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
[ OK ]
Grato:D