Ssh-tunnel to webserver - cannot access mobile website (subdirectory-site) [closed] Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Come Celebrate our 10 Year Anniversary!SSH remote access vpn tunnelwith SSH only: reverse tunnel web access via ssh SOCKS proxyWordPress 3.5 Multisite and nginx siteurl issuesSite to site ssh tunnelHow can a bog-standard Wordpress install break PHP?Nginx + Wordpress in subdirectoryAWStats in subdirectory of Wordpress shows 404 error when password protectedWordpress shared hosting (chrooted SFTP), plugin issuesApache not obeying Wordpress's htaccess rulesSetup wordpress container in subdirectory with nginx and mariadb

Why not use the yoke to control yaw, as well as pitch and roll?

Recursive calls to a function - why is the address of the parameter passed to it lowering with each call?

Putting Ant-Man on house arrest

Compiling and throwing simple dynamic exceptions at runtime for JVM

What is the evidence that custom checks in Northern Ireland are going to result in violence?

How can I introduce the names of fantasy creatures to the reader?

Raising a bilingual kid. When should we introduce the majority language?

How to break 信じようとしていただけかも知れない into separate parts?

Why are two-digit numbers in Jonathan Swift's "Gulliver's Travels" (1726) written in "German style"?

If gravity precedes the formation of a solar system, where did the mass come from that caused the gravity?

Is Vivien of the Wilds + Wilderness Reclamation a competitive combo?

What kind of equipment or other technology is necessary to photograph sprites (atmospheric phenomenon)

"Destructive force" carried by a B-52?

Pointing to problems without suggesting solutions

How is an IPA symbol that lacks a name (e.g. ɲ) called?

Will the Antimagic Field spell cause elementals not summoned by magic to dissipate?

Lights are flickering on and off after accidentally bumping into light switch

Converting a text document with special format to Pandas DataFrame

How to leave only the following strings?

Why isn't everyone flabbergasted about Bran's "gift"?

How to ask rejected full-time candidates to apply to teach individual courses?

Can a Knight grant Knighthood to another?

Etymology of 見舞い

Should man-made satellites feature an intelligent inverted "cow catcher"?



Ssh-tunnel to webserver - cannot access mobile website (subdirectory-site) [closed]



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Come Celebrate our 10 Year Anniversary!SSH remote access vpn tunnelwith SSH only: reverse tunnel web access via ssh SOCKS proxyWordPress 3.5 Multisite and nginx siteurl issuesSite to site ssh tunnelHow can a bog-standard Wordpress install break PHP?Nginx + Wordpress in subdirectoryAWStats in subdirectory of Wordpress shows 404 error when password protectedWordpress shared hosting (chrooted SFTP), plugin issuesApache not obeying Wordpress's htaccess rulesSetup wordpress container in subdirectory with nginx and mariadb



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








-2















I need to work from home since my boss is on holiday this week. I have an apache2-webserver with a wordpress-installation running. At work the mainsite and the mobile-site in the subdirectory works. Both are displaying and are accessable. However at home it is not: I connect my home-machine via ssh-tunnel to (test-)webserver. I can login normally into the network-admin-dashboard and the mainsite-dashboard. But the site in the subdirectory always redirects me to the mainpage(It always loads the mainsite-dashboard). Trying to display the mobile-site throws the wordpress-404-error.



Can somebody please help? It is urgent! I NEED to work on it.



.htaccess, wp-config.php are correct. The server files are correct. The ssh-tunnel is up correctly. Changing Permalink-structure to default for the subdirectory-site only throws an apache-404-error. I tried to access the mobile-site from the dashboard (already logged in) and it loads the mainsite-dashboard. And I tried logging in to wordpress directly to the mobile-site but it also only loads the mainsite-dashboard.



my .htaccess:



RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]

# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %REQUEST_FILENAME -f [OR]
RewriteCond %REQUEST_FILENAME -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
RewriteRule . index.php [L]


The command for the ssh-tunnel looks like this:



ssh -p 51425 -L 55080:127.0.0.1:80 -i /path-to-ssh-key/ssh-key username@www.company.de


And I force firefox via proxy-settings through this tunnel. With local-host as proxy and portnumber 55080.










share|improve this question









New contributor




Zehke is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











closed as off-topic by kubanczyk, womble Apr 16 at 23:32


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking installation, configuration or diagnostic help must include the desired end state, the specific problem or error, sufficient information about the configuration and environment to reproduce it, and attempted solutions. Questions without a clear problem statement are not useful to other readers and are unlikely to get good answers." – womble
If this question can be reworded to fit the rules in the help center, please edit the question.
















  • Why the hell should this question be offtopic? It is a serious issue I have there. I gave any information I have on the issue. And I can assume that the configuration-files on the server and wordpress are correct because it is working at work.

    – Zehke
    Apr 17 at 3:01











  • It is not offtopic, it is unclear, i.e. we think we can't answer your question in its current form, but we might be able if you extend it with some required configuration data (that reasoning is effectively a subset of the "unclear" close reason). Your edit helped a lot, but it is still unclear. We don't know anything about your sshtunnel configuration, although likely there is the problem. I suspect, using the ssh tunnel, you are accessing your Wordpress on a different hostname/port, as usual. Wordpress is very disliking to show anywhere, except on its real URL.

    – peterh
    2 days ago











  • If you are accessing the wordpress on a different hostname/port, it won't work. You need to hack your sshtunnel to access your wordpress on the same hostname and same port, where it always is. It is a clear disadvantage of the wordpress, however typically there are workarounds. I could write these in an answer, but how? It is quite possible, that you have some different problem.

    – peterh
    2 days ago











  • Btw, from your "maschine" I see you are from Germany. Willkommen :-) My experience is that Wordpress is very popular in Germany, because it creates cheaply and quickly good-looking company webpages. One of the disadvantages is this. Another disadvantage is the terrible mess of JSONs what is does on its Mysql. And of course it supports exclusively mysql. But don't worry, just insert the infos of your ssh and maybe I will be able to help.

    – peterh
    2 days ago











  • Thanks @peterh. The ssh-tunnel looks like this: ssh -51425 -p 55080:127.0.0.1:80 -i /path-to-ssh-key/ username@www.company.de

    – Zehke
    yesterday

















-2















I need to work from home since my boss is on holiday this week. I have an apache2-webserver with a wordpress-installation running. At work the mainsite and the mobile-site in the subdirectory works. Both are displaying and are accessable. However at home it is not: I connect my home-machine via ssh-tunnel to (test-)webserver. I can login normally into the network-admin-dashboard and the mainsite-dashboard. But the site in the subdirectory always redirects me to the mainpage(It always loads the mainsite-dashboard). Trying to display the mobile-site throws the wordpress-404-error.



Can somebody please help? It is urgent! I NEED to work on it.



.htaccess, wp-config.php are correct. The server files are correct. The ssh-tunnel is up correctly. Changing Permalink-structure to default for the subdirectory-site only throws an apache-404-error. I tried to access the mobile-site from the dashboard (already logged in) and it loads the mainsite-dashboard. And I tried logging in to wordpress directly to the mobile-site but it also only loads the mainsite-dashboard.



my .htaccess:



RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]

# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %REQUEST_FILENAME -f [OR]
RewriteCond %REQUEST_FILENAME -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
RewriteRule . index.php [L]


The command for the ssh-tunnel looks like this:



ssh -p 51425 -L 55080:127.0.0.1:80 -i /path-to-ssh-key/ssh-key username@www.company.de


And I force firefox via proxy-settings through this tunnel. With local-host as proxy and portnumber 55080.










share|improve this question









New contributor




Zehke is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











closed as off-topic by kubanczyk, womble Apr 16 at 23:32


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking installation, configuration or diagnostic help must include the desired end state, the specific problem or error, sufficient information about the configuration and environment to reproduce it, and attempted solutions. Questions without a clear problem statement are not useful to other readers and are unlikely to get good answers." – womble
If this question can be reworded to fit the rules in the help center, please edit the question.
















  • Why the hell should this question be offtopic? It is a serious issue I have there. I gave any information I have on the issue. And I can assume that the configuration-files on the server and wordpress are correct because it is working at work.

    – Zehke
    Apr 17 at 3:01











  • It is not offtopic, it is unclear, i.e. we think we can't answer your question in its current form, but we might be able if you extend it with some required configuration data (that reasoning is effectively a subset of the "unclear" close reason). Your edit helped a lot, but it is still unclear. We don't know anything about your sshtunnel configuration, although likely there is the problem. I suspect, using the ssh tunnel, you are accessing your Wordpress on a different hostname/port, as usual. Wordpress is very disliking to show anywhere, except on its real URL.

    – peterh
    2 days ago











  • If you are accessing the wordpress on a different hostname/port, it won't work. You need to hack your sshtunnel to access your wordpress on the same hostname and same port, where it always is. It is a clear disadvantage of the wordpress, however typically there are workarounds. I could write these in an answer, but how? It is quite possible, that you have some different problem.

    – peterh
    2 days ago











  • Btw, from your "maschine" I see you are from Germany. Willkommen :-) My experience is that Wordpress is very popular in Germany, because it creates cheaply and quickly good-looking company webpages. One of the disadvantages is this. Another disadvantage is the terrible mess of JSONs what is does on its Mysql. And of course it supports exclusively mysql. But don't worry, just insert the infos of your ssh and maybe I will be able to help.

    – peterh
    2 days ago











  • Thanks @peterh. The ssh-tunnel looks like this: ssh -51425 -p 55080:127.0.0.1:80 -i /path-to-ssh-key/ username@www.company.de

    – Zehke
    yesterday













-2












-2








-2








I need to work from home since my boss is on holiday this week. I have an apache2-webserver with a wordpress-installation running. At work the mainsite and the mobile-site in the subdirectory works. Both are displaying and are accessable. However at home it is not: I connect my home-machine via ssh-tunnel to (test-)webserver. I can login normally into the network-admin-dashboard and the mainsite-dashboard. But the site in the subdirectory always redirects me to the mainpage(It always loads the mainsite-dashboard). Trying to display the mobile-site throws the wordpress-404-error.



Can somebody please help? It is urgent! I NEED to work on it.



.htaccess, wp-config.php are correct. The server files are correct. The ssh-tunnel is up correctly. Changing Permalink-structure to default for the subdirectory-site only throws an apache-404-error. I tried to access the mobile-site from the dashboard (already logged in) and it loads the mainsite-dashboard. And I tried logging in to wordpress directly to the mobile-site but it also only loads the mainsite-dashboard.



my .htaccess:



RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]

# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %REQUEST_FILENAME -f [OR]
RewriteCond %REQUEST_FILENAME -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
RewriteRule . index.php [L]


The command for the ssh-tunnel looks like this:



ssh -p 51425 -L 55080:127.0.0.1:80 -i /path-to-ssh-key/ssh-key username@www.company.de


And I force firefox via proxy-settings through this tunnel. With local-host as proxy and portnumber 55080.










share|improve this question









New contributor




Zehke is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I need to work from home since my boss is on holiday this week. I have an apache2-webserver with a wordpress-installation running. At work the mainsite and the mobile-site in the subdirectory works. Both are displaying and are accessable. However at home it is not: I connect my home-machine via ssh-tunnel to (test-)webserver. I can login normally into the network-admin-dashboard and the mainsite-dashboard. But the site in the subdirectory always redirects me to the mainpage(It always loads the mainsite-dashboard). Trying to display the mobile-site throws the wordpress-404-error.



Can somebody please help? It is urgent! I NEED to work on it.



.htaccess, wp-config.php are correct. The server files are correct. The ssh-tunnel is up correctly. Changing Permalink-structure to default for the subdirectory-site only throws an apache-404-error. I tried to access the mobile-site from the dashboard (already logged in) and it loads the mainsite-dashboard. And I tried logging in to wordpress directly to the mobile-site but it also only loads the mainsite-dashboard.



my .htaccess:



RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]

# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %REQUEST_FILENAME -f [OR]
RewriteCond %REQUEST_FILENAME -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
RewriteRule . index.php [L]


The command for the ssh-tunnel looks like this:



ssh -p 51425 -L 55080:127.0.0.1:80 -i /path-to-ssh-key/ssh-key username@www.company.de


And I force firefox via proxy-settings through this tunnel. With local-host as proxy and portnumber 55080.







wordpress apache2 ssh-tunnel






share|improve this question









New contributor




Zehke is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Zehke is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited yesterday







Zehke













New contributor




Zehke is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Apr 16 at 15:38









ZehkeZehke

11




11




New contributor




Zehke is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Zehke is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Zehke is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




closed as off-topic by kubanczyk, womble Apr 16 at 23:32


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking installation, configuration or diagnostic help must include the desired end state, the specific problem or error, sufficient information about the configuration and environment to reproduce it, and attempted solutions. Questions without a clear problem statement are not useful to other readers and are unlikely to get good answers." – womble
If this question can be reworded to fit the rules in the help center, please edit the question.







closed as off-topic by kubanczyk, womble Apr 16 at 23:32


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions seeking installation, configuration or diagnostic help must include the desired end state, the specific problem or error, sufficient information about the configuration and environment to reproduce it, and attempted solutions. Questions without a clear problem statement are not useful to other readers and are unlikely to get good answers." – womble
If this question can be reworded to fit the rules in the help center, please edit the question.












  • Why the hell should this question be offtopic? It is a serious issue I have there. I gave any information I have on the issue. And I can assume that the configuration-files on the server and wordpress are correct because it is working at work.

    – Zehke
    Apr 17 at 3:01











  • It is not offtopic, it is unclear, i.e. we think we can't answer your question in its current form, but we might be able if you extend it with some required configuration data (that reasoning is effectively a subset of the "unclear" close reason). Your edit helped a lot, but it is still unclear. We don't know anything about your sshtunnel configuration, although likely there is the problem. I suspect, using the ssh tunnel, you are accessing your Wordpress on a different hostname/port, as usual. Wordpress is very disliking to show anywhere, except on its real URL.

    – peterh
    2 days ago











  • If you are accessing the wordpress on a different hostname/port, it won't work. You need to hack your sshtunnel to access your wordpress on the same hostname and same port, where it always is. It is a clear disadvantage of the wordpress, however typically there are workarounds. I could write these in an answer, but how? It is quite possible, that you have some different problem.

    – peterh
    2 days ago











  • Btw, from your "maschine" I see you are from Germany. Willkommen :-) My experience is that Wordpress is very popular in Germany, because it creates cheaply and quickly good-looking company webpages. One of the disadvantages is this. Another disadvantage is the terrible mess of JSONs what is does on its Mysql. And of course it supports exclusively mysql. But don't worry, just insert the infos of your ssh and maybe I will be able to help.

    – peterh
    2 days ago











  • Thanks @peterh. The ssh-tunnel looks like this: ssh -51425 -p 55080:127.0.0.1:80 -i /path-to-ssh-key/ username@www.company.de

    – Zehke
    yesterday

















  • Why the hell should this question be offtopic? It is a serious issue I have there. I gave any information I have on the issue. And I can assume that the configuration-files on the server and wordpress are correct because it is working at work.

    – Zehke
    Apr 17 at 3:01











  • It is not offtopic, it is unclear, i.e. we think we can't answer your question in its current form, but we might be able if you extend it with some required configuration data (that reasoning is effectively a subset of the "unclear" close reason). Your edit helped a lot, but it is still unclear. We don't know anything about your sshtunnel configuration, although likely there is the problem. I suspect, using the ssh tunnel, you are accessing your Wordpress on a different hostname/port, as usual. Wordpress is very disliking to show anywhere, except on its real URL.

    – peterh
    2 days ago











  • If you are accessing the wordpress on a different hostname/port, it won't work. You need to hack your sshtunnel to access your wordpress on the same hostname and same port, where it always is. It is a clear disadvantage of the wordpress, however typically there are workarounds. I could write these in an answer, but how? It is quite possible, that you have some different problem.

    – peterh
    2 days ago











  • Btw, from your "maschine" I see you are from Germany. Willkommen :-) My experience is that Wordpress is very popular in Germany, because it creates cheaply and quickly good-looking company webpages. One of the disadvantages is this. Another disadvantage is the terrible mess of JSONs what is does on its Mysql. And of course it supports exclusively mysql. But don't worry, just insert the infos of your ssh and maybe I will be able to help.

    – peterh
    2 days ago











  • Thanks @peterh. The ssh-tunnel looks like this: ssh -51425 -p 55080:127.0.0.1:80 -i /path-to-ssh-key/ username@www.company.de

    – Zehke
    yesterday
















Why the hell should this question be offtopic? It is a serious issue I have there. I gave any information I have on the issue. And I can assume that the configuration-files on the server and wordpress are correct because it is working at work.

– Zehke
Apr 17 at 3:01





Why the hell should this question be offtopic? It is a serious issue I have there. I gave any information I have on the issue. And I can assume that the configuration-files on the server and wordpress are correct because it is working at work.

– Zehke
Apr 17 at 3:01













It is not offtopic, it is unclear, i.e. we think we can't answer your question in its current form, but we might be able if you extend it with some required configuration data (that reasoning is effectively a subset of the "unclear" close reason). Your edit helped a lot, but it is still unclear. We don't know anything about your sshtunnel configuration, although likely there is the problem. I suspect, using the ssh tunnel, you are accessing your Wordpress on a different hostname/port, as usual. Wordpress is very disliking to show anywhere, except on its real URL.

– peterh
2 days ago





It is not offtopic, it is unclear, i.e. we think we can't answer your question in its current form, but we might be able if you extend it with some required configuration data (that reasoning is effectively a subset of the "unclear" close reason). Your edit helped a lot, but it is still unclear. We don't know anything about your sshtunnel configuration, although likely there is the problem. I suspect, using the ssh tunnel, you are accessing your Wordpress on a different hostname/port, as usual. Wordpress is very disliking to show anywhere, except on its real URL.

– peterh
2 days ago













If you are accessing the wordpress on a different hostname/port, it won't work. You need to hack your sshtunnel to access your wordpress on the same hostname and same port, where it always is. It is a clear disadvantage of the wordpress, however typically there are workarounds. I could write these in an answer, but how? It is quite possible, that you have some different problem.

– peterh
2 days ago





If you are accessing the wordpress on a different hostname/port, it won't work. You need to hack your sshtunnel to access your wordpress on the same hostname and same port, where it always is. It is a clear disadvantage of the wordpress, however typically there are workarounds. I could write these in an answer, but how? It is quite possible, that you have some different problem.

– peterh
2 days ago













Btw, from your "maschine" I see you are from Germany. Willkommen :-) My experience is that Wordpress is very popular in Germany, because it creates cheaply and quickly good-looking company webpages. One of the disadvantages is this. Another disadvantage is the terrible mess of JSONs what is does on its Mysql. And of course it supports exclusively mysql. But don't worry, just insert the infos of your ssh and maybe I will be able to help.

– peterh
2 days ago





Btw, from your "maschine" I see you are from Germany. Willkommen :-) My experience is that Wordpress is very popular in Germany, because it creates cheaply and quickly good-looking company webpages. One of the disadvantages is this. Another disadvantage is the terrible mess of JSONs what is does on its Mysql. And of course it supports exclusively mysql. But don't worry, just insert the infos of your ssh and maybe I will be able to help.

– peterh
2 days ago













Thanks @peterh. The ssh-tunnel looks like this: ssh -51425 -p 55080:127.0.0.1:80 -i /path-to-ssh-key/ username@www.company.de

– Zehke
yesterday





Thanks @peterh. The ssh-tunnel looks like this: ssh -51425 -p 55080:127.0.0.1:80 -i /path-to-ssh-key/ username@www.company.de

– Zehke
yesterday










0






active

oldest

votes

















0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

Esgonzo ibérico Índice Descrición Distribución Hábitat Ameazas Notas Véxase tamén "Acerca dos nomes dos anfibios e réptiles galegos""Chalcides bedriagai"Chalcides bedriagai en Carrascal, L. M. Salvador, A. (Eds). Enciclopedia virtual de los vertebrados españoles. Museo Nacional de Ciencias Naturales, Madrid. España.Fotos