Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Ubuntu server - Owncloud, webserver Port forwarding
New Posts  All Forums:Forum Nav:

Ubuntu server - Owncloud, webserver Port forwarding

post #1 of 5
Thread Starter 
Hey Guys,

Here is my question:

I have recently setup a home lab on an esxi machine for linux purposes. I have currently got a couple of ubuntu server instances installed and configured.
First server, basic lamp config with wordpress on top.
Second server, basic lamp with Owncloud on top.

Problem is accessing them over the internet. I can access the wordpress server fine, on port 80. I can't access the owncloud server as it uses the same port. Fair enough.
I then changed the listening port on the owncloud server /etc/apache2/ports.conf - to port 79. Then made the required port forward on my firewall to the local IP address of the server.

But still nothing from the outside. Am I missing something?

I haven't looked to much into this yet, not had a lot of time. So if anyone could give me any pointers, I would appreciate it.

Thanks
post #2 of 5
Quote:
Originally Posted by bigyin View Post

Hey Guys,

Here is my question:

I have recently setup a home lab on an esxi machine for linux purposes. I have currently got a couple of ubuntu server instances installed and configured.
First server, basic lamp config with wordpress on top.
Second server, basic lamp with Owncloud on top.

Problem is accessing them over the internet. I can access the wordpress server fine, on port 80. I can't access the owncloud server as it uses the same port. Fair enough.
I then changed the listening port on the owncloud server /etc/apache2/ports.conf - to port 79. Then made the required port forward on my firewall to the local IP address of the server.

But still nothing from the outside. Am I missing something?

I haven't looked to much into this yet, not had a lot of time. So if anyone could give me any pointers, I would appreciate it.

Thanks

A much more complicated set up, but more worthwhile would be the following:

1. set up a dynamic dns to your home IP
2. buy a cheap domain name and put a wildcard CNAME to your dynamic dns address
3. in apache, use named vhosts, set the first domain to point to your wordpress vhost, and your second (eg cloud.example.com) to a different vhost
4. in your clound vhost, use proxy pass to point to the internal IP of your other ESXi VM running LAMP
5. enjoy having all your sites running on port 80

The other (and much easier) way is to have owncloud and wordpress running on the same box. Since they're both PHP projects, you could have example.com/wordpress point to wordpress, but have example.com/cloud point to owncloud. It doesn't look as pretty as the 1st recommendation though and doesn't have the same site separation you're clearly trying to achieve.

As an aside note, I prefer Pidio (formally ajaxexplore) to owncloud, though I run both on my server (owncloud for auto photo upload on android phones, and ajaxexplore for everything else).
post #3 of 5
Thread Starter 
Thanks for the advice, however, that's a lot of changing and configuring just to solve my problem. You are probably right about it being a better way of working it, however I'm at the point of just getting what I have just now to work.

I should also mention, I've got a static IP smile.gif
Edited by bigyin - 11/13/13 at 8:18am
post #4 of 5
Quote:
Originally Posted by bigyin View Post

Thanks for the advice, however, that's a lot of changing and configuring just to solve my problem. You are probably right about it being a better way of working it, however I'm at the point of just getting what I have just now to work.

I should also mention, I've got a static IP smile.gif

if you have a static IP, then you can skip a few steps (named the dynamic dns set up)

is there any particular reason why owncloud needs to run on a separate box to wordpress? is it just a security thing?

[edit]
sorry, i didn't actually answer your original problem, can you post your vhost config please smile.gif
post #5 of 5
Use
Code:
netstat -tulpn
To see if apache is listening on port 79.

Look to see if your other server can ping owncloud on port 79 (does it work internally).
    
CPUMotherboardGraphicsRAM
AMD FX-8320 3.5Ghz @ 3.5ghz Gigabyte 990FXA-UD3 Gigabyte 6850 OC windforce 1GB GDDR5  8GB (2x4GB) G.SKILL RipjawsX F3-12800CL9D-8GBXL 
Hard DriveHard DriveHard DriveCooling
2TB Caviar Green 250GB Hitachi 64GB Crucial M4 Noctua D14 
OSMonitorMonitorMonitor
Linux + Windows 7 64Bits LG Flatron Wide 20.1" 1680x1050 LG Flatron W2442PA 24" 1080p Samsung B2430HD 24 With TV Tuner 1080p 
KeyboardPowerCaseMouse
CM Quickfire Rapid Blue Corsair TX750V2 CM 690 II Logitech G5 
Mouse PadAudio
Steelseries QCK Cloth medium Logitech x-540 
  hide details  
Reply
    
CPUMotherboardGraphicsRAM
AMD FX-8320 3.5Ghz @ 3.5ghz Gigabyte 990FXA-UD3 Gigabyte 6850 OC windforce 1GB GDDR5  8GB (2x4GB) G.SKILL RipjawsX F3-12800CL9D-8GBXL 
Hard DriveHard DriveHard DriveCooling
2TB Caviar Green 250GB Hitachi 64GB Crucial M4 Noctua D14 
OSMonitorMonitorMonitor
Linux + Windows 7 64Bits LG Flatron Wide 20.1" 1680x1050 LG Flatron W2442PA 24" 1080p Samsung B2430HD 24 With TV Tuner 1080p 
KeyboardPowerCaseMouse
CM Quickfire Rapid Blue Corsair TX750V2 CM 690 II Logitech G5 
Mouse PadAudio
Steelseries QCK Cloth medium Logitech x-540 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Ubuntu server - Owncloud, webserver Port forwarding