
arthur12345
(usa Ubuntu)
Enviado em 28/07/2011 - 18:49h
Bom pessoal,estou tentando liberar o apache2 para acesso externo no ubuntu 10.04 mas,até agora o máximo que consegui foi fazer ele rodar "http://localhost:8080/" e "http://webbox.sytes.net:8080/".Assim que o configurei...
01:Com boot no Windows fui em Iniciar>Oi Velox>Modem>Alterar Modo de Programação.Depois mudei de configuração padrão para avançada.
02:No menu do modem ZTE 831 2 em Advanced,NAT,Virtual Server ,adicionei as portas
8080,2380,8000,8090,80 todas com Serve Name "Auth",Protocol "TCP" e Server IP Address 192.168.254.3
03:Apartir daqui é no ubuntu...
/etc/hosts/
meu.ip webbox.sytes.net
192.168.254.3 arthur-GA-VM900M # Added by NetworkManager
127.0.0.1 localhost.localdomain localhost
::1 arthur-GA-VM900M localhost6.localdomain6 localhost6
127.0.1.1 arthur-GA-VM900M
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
/etc/apache2/sites-available/default
<VirtualHost *:8080>
ServerName webbox.sytes.net
ServerAlias
www.webbox.sytes.net
ServerAdmin webbox@yahoo.com
DocumentRoot /var/www/
</VirtualHost>
/etc/apache2/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 *:8080
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>
OBS:Os * são asteriscos mesmo
meu.ip ,meu ip externo