|
|
|
|
||||||
| alt.apache.configuration Apache web server configuration issues. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
G'day.
I've set my main PC with Apache 2.2.4, PHP 5.2.0 and MySQL 5.0.27. On there, if I browse to http://localhost/ or http://127.0.0.1/ I get the website that I'm developing. But... If I try to access it via my laptop with the correct IP address (http://192.168.1.98/) it won't connect. In my httpd.conf file I have the following settings for the listening ports: #Listen 12.34.56.78:80 Listen 80 #Listen 192.168.1.98:80 I did try it without the # infront of Listen 192.168.1.98:80 but nothing happened so I disabled it. What am I doing wrong? Thanks. |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
sebz2006@gmail.com schrieb am 23.05.2007 05:31:
> G'day. > I've set my main PC with Apache 2.2.4, PHP 5.2.0 and MySQL 5.0.27. > On there, if I browse to http://localhost/ or http://127.0.0.1/ I get > the website that I'm developing. > But... If I try to access it via my laptop with the correct IP address > (http://192.168.1.98/) it won't connect. > In my httpd.conf file I have the following settings for the listening > ports: > > #Listen 12.34.56.78:80 > Listen 80 > #Listen 192.168.1.98:80 > > I did try it without the # infront of Listen 192.168.1.98:80 but > nothing happened so I disabled it. > What am I doing wrong? > > Thanks. > You disabled the firewall on the machine running apache? HTH -- Werner Flamme, Abt. WKDV Helmholtz-Zentrum für Umweltforschung GmbH - UFZ Permoserstr. 15 - 04318 Leipzig Tel.: (0341) 235-3921 - Fax (0341) 235-453921 http://www.ufz.de - eMail: werner.flamme@ufz.de |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
On May 23, 10:11 am, Werner Flamme <werner.fla...@ufz.de> wrote:
> sebz2...@gmail.com schrieb am 23.05.2007 05:31: > > > > > G'day. > > I've set my main PC with Apache 2.2.4, PHP 5.2.0 and MySQL 5.0.27. > > On there, if I browse tohttp://localhost/orhttp://127.0.0.1/I get > > the website that I'm developing. > > But... If I try to access it via my laptop with the correct IP address > > (http://192.168.1.98/) it won't connect. > > In my httpd.conf file I have the following settings for the listening > > ports: > > > #Listen 12.34.56.78:80 > > Listen 80 > > #Listen 192.168.1.98:80 > > > I did try it without the # infront of Listen 192.168.1.98:80 but > > nothing happened so I disabled it. > > What am I doing wrong? > > > Thanks. > > You disabled the firewall on the machine running apache? > > HTH > > -- > Werner Flamme, Abt. WKDV > Helmholtz-Zentrum für Umweltforschung GmbH - UFZ > Permoserstr. 15 - 04318 Leipzig > Tel.: (0341) 235-3921 - Fax (0341) 235-453921http://www.ufz.de- eMail: werner.fla...@ufz.de you have to check whether the ip is running, after set in httpd.conf listen you should ping the ip address whether it is running, if not you have to set the ip address manually, it is according to whether you are in windows or linux |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
kwan schrieb am 25.05.2007 01:23:
> On May 23, 10:11 am, Werner Flamme <werner.fla...@ufz.de> wrote: >> sebz2...@gmail.com schrieb am 23.05.2007 05:31: >> >> >> >>> G'day. >>> I've set my main PC with Apache 2.2.4, PHP 5.2.0 and MySQL 5.0.27. >>> On there, if I browse tohttp://localhost/orhttp://127.0.0.1/I get >>> the website that I'm developing. >>> But... If I try to access it via my laptop with the correct IP address >>> (http://192.168.1.98/) it won't connect. >>> In my httpd.conf file I have the following settings for the listening >>> ports: >>> #Listen 12.34.56.78:80 >>> Listen 80 >>> #Listen 192.168.1.98:80 >>> I did try it without the # infront of Listen 192.168.1.98:80 but >>> nothing happened so I disabled it. >>> What am I doing wrong? >>> Thanks. >> You disabled the firewall on the machine running apache? >> >> HTH >> >> -- >> Werner Flamme, Abt. WKDV >> Helmholtz-Zentrum für Umweltforschung GmbH - UFZ >> Permoserstr. 15 - 04318 Leipzig >> Tel.: (0341) 235-3921 - Fax (0341) 235-453921http://www.ufz.de- eMail: werner.fla...@ufz.de > > you have to check whether the ip is running, after set in httpd.conf > listen > you should ping the ip address whether it is running, if not you have > to set the ip address manually, it is according to whether you are in > windows or linux > Why do you reply to *my* posting? It was not me who had this problem! ;-) -- Werner Flamme, Abt. WKDV Helmholtz-Zentrum für Umweltforschung GmbH - UFZ Permoserstr. 15 - 04318 Leipzig Tel.: (0341) 235-3921 - Fax (0341) 235-453921 http://www.ufz.de - eMail: werner.flamme@ufz.de |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
sebz2006@gmail.com wrote in news:1179891085.594673.94490
@g4g2000hsf.googlegroups.com: > G'day. > I've set my main PC with Apache 2.2.4, PHP 5.2.0 and MySQL 5.0.27. > On there, if I browse to http://localhost/ or http://127.0.0.1/ I get > the website that I'm developing. > But... If I try to access it via my laptop with the correct IP address > (http://192.168.1.98/) it won't connect. > In my httpd.conf file I have the following settings for the listening > ports: > > #Listen 12.34.56.78:80 > Listen 80 > #Listen 192.168.1.98:80 > > I did try it without the # infront of Listen 192.168.1.98:80 but > nothing happened so I disabled it. > What am I doing wrong? > > Thanks. > > Are you reloading the config file after each change? -- ----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==---- http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups ----= East and West-Coast Server Farms - Total Privacy via Encryption =---- |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
kwan schrieb am 25.05.2007 01:23:
> I've set my main PC with Apache 2.2.4, PHP 5.2.0 and MySQL 5.0.27. > On there, if I browse tohttp://localhost/orhttp://127.0.0.1/I get > the website that I'm developing. > But... If I try to access it via my laptop with the correct IP address > (http://192.168.1.98/) it won't connect. > In my httpd.conf file I have the following settings for the listening > ports: > #Listen 12.34.56.78:80 > Listen 80 > #Listen 192.168.1.98:80 > I did try it without the # infront of Listen 192.168.1.98:80 but > nothing happened so I disabled it. > What am I doing wrong? "Werner Flamme" asked: : Why do you reply to *my* posting? It was not me who had this : problem! ;-) My reply is in context. Try something along the lines of the following:... # # NOTE: No listen directive required. # IP address goes into the first VirtualHost as ServerName. # Then specific domains get configured one at a time. Then place # your subdomains prior to the domain entries to handle those # appropriately. Apache STOPS going through the .conf file at # the first successful match. # Port 80 NameVirtualHost *:80 # # ... other stuff as needed ... # <VirtualHost *:80> # Leave the trailing forward slash off # ... represents some unknown path to the targeted folder/file, fill # it in with whatever is appropriate for your system. # DocumentRoot "Z:/.../.../path_to/subdomain/folder" ServerName 192.168.1.98 ErrorLog ... CustomLog ... </VirtualHost> # Place all other virtual hosts under the first one above. # Keep the order of subdomain / domain intact... <VirtualHost *:80> DocumentRoot "..." ServerName subdomain.example.com ErrorLog ... CustomLog ... </VirtualHost> <VirtualHost *:80> # Handle bad domain name typos ServerName subdomain.example.com ServerAlias *.subdomain.example.com Redirect 301 / http://subdomain.example.com/ </VirtualHost> # # Handle the parent domain... # <VirtualHost *:80> ServerName example.com ErrorLog ... CustomLog ... </VirtualHost> -- Jim Carlock Post replies to the group. |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
Jim Carlock schrieb am 29.05.2007 23:34: > kwan schrieb am 25.05.2007 01:23: >> I've set my main PC with Apache 2.2.4, PHP 5.2.0 and MySQL 5.0.27. >> On there, if I browse tohttp://localhost/orhttp://127.0.0.1/I get >> the website that I'm developing. >> But... If I try to access it via my laptop with the correct IP address >> (http://192.168.1.98/) it won't connect. >> In my httpd.conf file I have the following settings for the listening >> ports: >> #Listen 12.34.56.78:80 >> Listen 80 >> #Listen 192.168.1.98:80 >> I did try it without the # infront of Listen 192.168.1.98:80 but >> nothing happened so I disabled it. >> What am I doing wrong? > > "Werner Flamme" asked: > : Why do you reply to *my* posting? It was not me who had this > : problem! ;-) > > My reply is in context. > > Try something along the lines of the following:... Jim, why do you again reply on *my* posting? It was not me who put the question or who has the problem, it was sabz2006@gmail.com. Answer on *his* post please. I did not say that your reply was out of context, you just replied to the wrong poster ;-) Just to have the correct order in the thread... Regards, Werner |
|
![]() |
| Outils de la discussion | |
|
|