General :: Apache Works Locally But Not Globally?
May 20, 2010
I set up apache (apache2) to create a moodle server, but I can't get it to work globally. Here is the rub: http://192.168.0.150 works beautifully, showing me the index page at /var/www [URL] (my dyndns) or http://96.49.75.14 (my current IP address) doesn't work.ssh works well globally, i.e. ssh -l myname [URL] works. pinging [URL] works without a problem. Ports 22, 80 and 443 are open on my router (checked my router's settings).I use ubuntu 10.4. Is it an iptables problem, as in http://www.linuxquestions.org/questi...achine-750157/ ? But I couldn't figure out the iptables manpage.
View 14 Replies
ADVERTISEMENT
Jan 3, 2011
I have tried to host a website at home (consider it a good option and learning experience). After using some Linux distros finally decided to stick with UBUNTU (10.10). Sadly everything was ok until the configuration of BIND9 finally failed.
I am nearly blind with most concepts of networking, my understanding is really basic and am guessing my problem is on that direction but really can not figure it out.
My set up is based on a guide found at [url] and have just changed the domain name so my configuration files are:
And for the reverse zone:
My resolv.conf file looks as follows:
With the last three lines being the IP of my ISP DNSs and declared in /etc/bind/named.conf.options as formwarders.
The output of named-checkzone arquibailleres.com is:
And:
When my BIND service is restarted its output log clearly states that the zones are added and indicates "sending notifies" yet by using dig and ping everything works nicely but when I try to connect to the site from an external computer my site simply is not recognised.
Ping output:
Dig output:
I have rented a static IP address, but still when looking for my global address I see: 201.130.192.159.
To me it looks like it is working, but I already mentioned that my understanding of that stuff is really poor, I have finally ran the "port scan tool" under System -> Administration -> Network Tools and it indicates that my port 53 is assigned to "domain" and open, also port 80 is open for www.
View 3 Replies
View Related
Feb 20, 2009
'm running on Ubuntu and I've succesfully setup apache alongside with a working php & mysql configuration - other computers connected to the LAN can access it by typing in my ip: 192.168.0.9however I would like my webserver to be accessible by all internet users...I've got my ports.conf file in the apache setup to listen on ports 80 and 8080 this is my ports.conf:PHP Code:
Listen 80
Listen 8080
Listen 2000
[code].....
View 5 Replies
View Related
Feb 9, 2010
There's browser identification menu for spoofing for specific sites, but i need to change user agent for all sites. How do I do it?
View 1 Replies
View Related
Jan 7, 2010
Being a long time Unix/Solaris user, but relatively new for Linux, I am looking for suggestions as to which Linux would be best suited for running Apache, PHP and Oracle 11g - among Ubuntu, GNU-Linux, Debian and RedHat ?
View 3 Replies
View Related
Apr 19, 2011
I've spent days trying to setup access properly from a public address to a monitoring server that works fine locally. Everything works from public access until I try to link to a CVS repository. The rancid CVS repository is set up as a separate server (virtualhost). It appears the referring link causes a DNS error (105: Server Not Found) when the CVS repository server is accessed from the public address. Things work fine when accessing via localhost.
Localhost link:
[URL]
Public link: (this results in 105 error caused by redirection (bold portion of link))
[URL]
Code:
Virtualhost config:
LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so
JkWorkersFile /etc/apache2/workers.properties
JkLogFile /var/log/apache2/mod_jk.log
[code]....
View 2 Replies
View Related
Mar 23, 2010
I am trying to set up an ftp server on my home machine so a friend and I can exchange large files. I have set up pure-ftp server and gftp client.Pure-ftp works fine behind my Dlink DSL 2740B router using host name '192.168.1.100' but not over the internet using host name '80.47.xxx.xxx' I get the message
Quote:
Looking up 80.47.xxx.xxx
Trying 80.47.xxx.xxx:21
Cannot connect to 80.47.xxx.xxx: Connection refused
Operation cancelled
I have set up port forwarding as per the attachment.I haven't set up a software firewall and my iptables -L looks like:
Quote:
$ sudo iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
[code]....
The username I am using is part of "ftpgroup" and is the same user that works behind the router.Putting the computer in the DMZ doesn't help.I have a similar problem with SSH so I assume the problem is with the router.Other threads suggest the culprits should be port forwarding or a firewall but I can't see what is wrong.
View 1 Replies
View Related
Jan 17, 2011
I tried posting to this SOLVED thread, but suspect that was the wrong thing to do! [URL].... Basically, the thread shows how to strip the first 2 lines of a text file, but because I have quote a number of folders on the desktop each needing the same treatment, I wondered how to do this in one step. I figure I might learn something rather than just do the grunt work of switching from folder to folder.
View 9 Replies
View Related
Feb 6, 2011
I've just installed CentOS5.5 on an older P3 machine as well as in a VM under Virtual Box on my laptop and I've run into the same issue with Java on both. During installation, I make sure not to install any form of Java anything as I wish to use Sun/Oracle's JDK. On first login on both machines, typing "java" in a shell finds that gij has magically installed, even though I didn't want it there.
I d/l and install Java 6-23 via the .rpm.bin package from Oracle. Typing java -version in the shell still returns "gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-48)". Ok, so it's 2011 and Oracle/Sun still can't figure out how to write a java installer that will set PATH. I add the following to my .bashrc file under my normal user:
PATH=/usr/local/jdk1.6.0/bin
export PATH
log out, log in and java reports the correct version... Except now I can't su, open vi or a number of other things.
Since I want to use this globally anyways, how do I go about using this version of Java globally for all things java? (eclipse, jboss, etc...) #alternatives --config java only shows this gij version.
View 4 Replies
View Related
Mar 29, 2009
I have installed apache. The problem is that localhost works but not the ip for viewing my hosted sites.
How can i rectify this error?
View 5 Replies
View Related
Jul 27, 2011
I've downloaded and installed Apache, mySQL and PHP via YAST. The web server is up and running and I am able to create and modify databases in phpMyAdmin. What's strange is that I am working on some other websites which use php includes to deliver my stylesheets, scripts etc. However, these includes do not work. I can view my website but all I see is the output from the html within the php file. Anything that is being delivered through includes does not display or run so all my content is unstyled.
View 3 Replies
View Related
Mar 15, 2011
I know what I need to do I just cant seem to achieve it and that is correctly setup a DNS server that works over the internet, I'm using BIND9 with webmin. I have Fedora 14 - Apache is install its all working locally, so this final step I just can't grasp to be honest.
View 14 Replies
View Related
Aug 20, 2010
when I try to view my root directory of my website.if I go to URL... on my computer, it always loads the "It Works!" page. I deleted the original index.html page, and even replaced it - but if I go to URL... it KEEPS coming up.If I specify the page I want to view, ie.URl... it loads the right file.Is there a setting in the conf file that Im missing?
View 3 Replies
View Related
Jan 17, 2010
I have 2 web server in my office : http and https. You will find attached the httpd.conf and ssl.conf. I can acces the https server from home, but not the http one.
What I did :
configure the router to forward port 80 to my fedora 11 machine
open port 80 with system-config-network
created a virtualhost
The same exact steps have been done for port 443
I can access both server locally but only the https server remotelly.
Here are my iptables :
Code:
you can try to acces my servers using [url]
I made httpd to listen to port 8080, and done all the port forwarding/opening stuf, and it works. so is it a bug ?
Finally found my error seams like turning off UseCanonicalName to off did the trick
I really think it's a bug now. It was definitively working last week, I just added content to the main host of my website, and now i can't acces it from port 80. If someone think it's not a bug or find someting missing/wrong in my conf file.
View 2 Replies
View Related
Mar 14, 2011
I am new to linux and need to do this in a script.
1. Get all the vars (env command)
2. Set them locally (name, value pair) in script using loop iteration.
Pseudo code
Code:
View 2 Replies
View Related
Mar 24, 2010
Is it possible for me to SSH to another server in Linux (Ubuntu), run a program there but display it locally?And is it possible for me to SSH to another server in my terminal,and configure it so that all graphical programs (Firefox, Emacs) run in that SSH session will be displayed locally?
View 3 Replies
View Related
Jan 22, 2011
I was wondering if you can 'share' devices in Linux by overlaying the devices nodes? For instance, is it possible to use SSH (FS) + bind to selectively bind devices locally?
View 1 Replies
View Related
Jul 5, 2011
I have rhel5.4 in my vmware , i am trying to install yum repositories in /home/Server bcoz i dont have enough space in /var/ftp/pub. i installed vsftpd ,createrepo rpms and index is installed, but when i check for yum list its saying cannot change directory.
View 1 Replies
View Related
Jul 18, 2010
I can't reach my website via http. I'm not sure but I think I just need to unblock port 80. But I can't find where a firewall has even been installed on my machine. ufw status returns inactive. sudo aptitude search firewall shows nothing installed.
Nslookup mydomain.com returns the correct IP. Pinging works.
But typing in the domain name or IP through the web browser just results in a "Network Timeout...Taking too long to respond."
Wget just hangs looking for MySiteName.com:80
VirtualHost has been set up and apache restarted. Site works fine with the ServerAlias I have assigned in my hosts file.
View 4 Replies
View Related
Apr 13, 2010
I need to run a (Tcl, or whatever) script on a remote Unix machine, from a (local) Windows command shell, and I want the stdout/stderr of the script to show up in the Windows CLI. The exit code would also be useful.
View 4 Replies
View Related
Jun 2, 2011
I want local programmatic access to ssh output in Mac Terminal. First, I tried redirecting the output of each command to a file. The file was perfect, but of course it was on the remote server, and an sftp for each command output seemed a little.. Next, I tried to Applescript Terminal, but it only gives access to the currently visible text in a tab (i.e. if half the output has already scrolled out of sight, it doesn't get returned - useless).
Last, I tried piping ssh to tee (e.g. ssh user@host | tee output.txt). This almost worked. I have the output in a local file, but there are a lot of unwanted characters mixed in. For example, every time I hit backspace, there's a ^H in the file. There's also text like "[0m[K" which is harder to get rid of.
View 2 Replies
View Related
Oct 20, 2010
I am creating this script which will login to a server with ssh and check if a particular exists there, if not it will create the user.This is the script:Quote:
ssh 192.168.100.5
cat /etc/passwd|grep -i $1 > /dev/null
if [ $? -eq 0 ];
[code]...
View 9 Replies
View Related
Feb 15, 2011
logon to my RHEL as a user. I am able to logon in as root locally.
View 3 Replies
View Related
Sep 16, 2011
I need to recreate in a local folder called /distro/fedora/ the full directory tree (including eventually hidden files, symlinks, etc.) contained in the .iso file just downloaded (Fedora-15-i686-Live-Desktop.iso).
I understand I can mount the ISO image using something like this:
mount -ro loop /path/to/image.iso /mnt
but then, which would be the best way to get a copy exact of what I see underneath /mnt in to /distro/fedora ?
cp, tar, clobber?
View 1 Replies
View Related
Sep 24, 2009
I just tried FreeNX. I work great. I am thinking about uninstalling the vino/vnc on my machine.
However, I'd like to know if FreeNX can access the session that open locally on the server. I tried session 0 and 1, none of them can access the local session.
For default vnc, the connection will let you access the local session on the server. Can FreeNX do that?
View 2 Replies
View Related
Aug 8, 2011
i was trying to configure yum locally, can i copy files to any other location other than /var/ftp/pub. how to configure yum.repos.d/rhel debuginfo file.
View 2 Replies
View Related
May 18, 2010
I just switched from Windows to Linux. I've been using EditPlus for many years mainly because of it's ability to save locally, and then send the file via FTP, with easy keyboard shortcuts (ctrl-s to save, ctrl-alt-s to ftp).
I also need syntax highlighting and basic code editing features. Is there anything for Linux that can do this? I don't want to run EditPlus via Wine
I need to save locally and remotely simultaneously, or at least with a few keystrokes. I already know of plenty of ways to edit remote files.
View 3 Replies
View Related
Aug 31, 2011
Is there an open source application that can download e-mails from a generic POP mail server, keep a copy of the mails locally and then deliver copies to multiple accounts on a LAN? I have a friend who uses a group e-mail account, and more than one person is always hooked onto that account. The problem is they cannot leave e-mail on the server, as it eats out their webhosting space, but if someone downloads a message in Outlook, the other users do not see that message.
View 1 Replies
View Related
Aug 17, 2010
I can set my EDITOR variable in my .bashrc to e.g. gedit, which is a nice graphical editor on ubuntu. But when I log in over PuTTY that editor will fail.What is the best way to detect if I'm logged in and can run a graphical editor, or not, and set EDITOR appropriately?
View 2 Replies
View Related
Aug 18, 2011
I am installing a program on a server as a non-root user. Specifically it is tmux 1.5, but this should apply broadly to all locally installed program in my opinion (I mention the program name in case this problem ends up not being my own error).
The program requires me to install some dependent libraries (e.g. libevent and ncurses). So, I installed them both locally since I do not have root access
cd $HOME/library/installation/folder
DIR=$HOME/local
./configure --prefix=$DIR
#... make ... make install
[Code]....
Ok, so this installs the program without problems into $HOME/local/bin, but if I run the executable: $HOME/local/bin/tmux , I get the following error:
tmux: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory
It would seem to me that the program cannot find the desired libraries, but the file libevent-2.0.so.5 does indeed exist in $HOME/local/lib as specified in the configure options. I am wondering how I can get the program to recognize the installed library in order to run. I tried putting symbolic links in $HOME/lib, $HOME/bin, and $HOME/local/bin, but none of these worked.
View 2 Replies
View Related