首页 \ 问答 \ 我的服务器的IP会自动重定向到一个文件夹(My server's IP is redirecting to one folder automatically)

我的服务器的IP会自动重定向到一个文件夹(My server's IP is redirecting to one folder automatically)

我在Digitalocean有一个帐户,他们给了我我的Droplet的IP地址,我有很多在文件夹中分开的proyects,主要是wordpress,prestashop和html。

ls -l www/
drwxrwxr-x  5 www-data www-data 4096 sep 17 12:36 mainwordpress
drwxr-xr-x 20 www-data www-data 4096 may  7  2015 anotherwordpress
drwxrwxr-x  6 www-data www-data 4096 sep 17 13:21 lastwordpress
drwxr-xr-x  6 www-data www-data 4096 ago 11  2015 prestashop
drwxr-xr-x  6 www-data www-data 4096 abr  1  2015 html

我有一些域指向每个wordpress和prestahop文件夹,所以我可以正确安装,我可以访问它们没有错误。 但是当我尝试访问我的HTML proyect时,它没有域,我通过http:// my_server_ip / html访问它,它将我重定向到wordpress proyects之一,完全是mainwordpress,当然还有一个错误,就是找不到页面(404)。

我检查了我的域名配置,每个wordpress proyect都有一个A寄存器到我服务器的IP,也是prestashop:

MAINWORDPRESS

  • 答:@ my_server_ip
  • 答:子域名my_server_ip
  • CNAME:www mainwordpress.com
  • CNAME:* .subdomain subdomain.mainwordpress.com
  • MX:0 mainwordpress.com

ANOTHERWORDPRESS

  • 答:@ my_server_ip
  • 答:sub1 my_server_ip
  • 答:sub2 my_server_ip
  • 答:sub3 my_server_ip
  • 答:www my_server_ip
  • 答:* my_server_ip
  • CNAME:* .subdomain subdomain.anotherwordpress.com

LASTWORDPRESS

  • 答:@ my_server_ip
  • 答:sub my_server_ip
  • CNAME:www lastwordpress.com。
  • CNAME:* .sub sub.lastwordpress.com。

的Prestashop

  • 答:@ my_server_ip
  • CNAME:www my_prestashop.com。

我完全迷失了。 当我尝试通过服务器的IP( http:// my_server_ip / html ,或http:// my_server_ip / whatever ,或http:// my_server_ip / askdhjfgaksjhdfgs )输入URL时,会转到mainwordpress的404页面。 我应该看看还有哪些其他配置?

先谢谢你!!


I've an account in Digitalocean, they gave me my droplet's IP address and I have a lot of proyects separated in folders, mainly wordpress, prestashop and html.

ls -l www/
drwxrwxr-x  5 www-data www-data 4096 sep 17 12:36 mainwordpress
drwxr-xr-x 20 www-data www-data 4096 may  7  2015 anotherwordpress
drwxrwxr-x  6 www-data www-data 4096 sep 17 13:21 lastwordpress
drwxr-xr-x  6 www-data www-data 4096 ago 11  2015 prestashop
drwxr-xr-x  6 www-data www-data 4096 abr  1  2015 html

I have some domains that point to each and every wordpress and prestahop folders, so I could make the installation correctly and I can access them without an error. But when I try to access my HTML proyect, which has no domain and I access it via http://my_server_ip/html, it redirects me to one of the wordpress proyects, exactly to mainwordpress, and of course giving an error of not finding the page (404).

I've checked my domain's configuration, and every wordpress proyect has an A register to my server's IP, also the prestashop:

MAINWORDPRESS

  • A: @ my_server_ip
  • A: subdomain my_server_ip
  • CNAME: www mainwordpress.com
  • CNAME: *.subdomain subdomain.mainwordpress.com
  • MX: 0 mainwordpress.com

ANOTHERWORDPRESS

  • A: @ my_server_ip
  • A: sub1 my_server_ip
  • A: sub2 my_server_ip
  • A: sub3 my_server_ip
  • A: www my_server_ip
  • A: * my_server_ip
  • CNAME: *.subdomain subdomain.anotherwordpress.com

LASTWORDPRESS

  • A: @ my_server_ip
  • A: sub my_server_ip
  • CNAME: www lastwordpress.com.
  • CNAME: *.sub sub.lastwordpress.com.

PRESTASHOP

  • A: @ my_server_ip
  • CNAME: www my_prestashop.com.

I'm completely lost. When I try to enter an URL via my server's IP (http://my_server_ip/html, or http://my_server_ip/whatever, or http://my_server_ip/askdhjfgaksjhdfgs) it goes to mainwordpress' 404 page. What other configurations should I look?

Thank you in advance!!


原文:https://stackoverflow.com/questions/39550531
更新时间:2023-07-17 06:07

最满意答案

Google流行的依赖注入库Guice可以在非最终注入的实例上执行AOP。


Google's popular dependency injection library Guice can perform AOP on non-final injected instances.

相关问答

更多
  • 生活中的例子 非AOP的过程 开门 放冰箱里(大象) 关门 开门 放冰箱里(冰棍) 关门 应用AOP后 配置 在调用放冰箱里()前 执行 开门 在调用放冰箱里()后 执行 关门 程序里就是 放冰箱里(大象) 放冰箱里(冰棍) 开关门AOP帮你做了 AOP一般用于权限校验,日志管理 就是程序里不用每页都写 权限校验,日志等操作
  • 主要应用了java的反射技术,很酷; 可以根据给定的参数(主要是字符串) 创建相应的bean,访问相应的方法或构造器以及成员变量; 具体应用可以查看帮助文档 java.lang.reflect包下的Constructor,Method, Field/java.lang.Class
  • 您可以通过以下方式尝试匿名切入点: @Before("execution(* setHeight(..))") public void log(JoinPoint point) { log.info(point.getSignature().getName() + " called..."); } 或者给你的切入点一个名字并以这种方式使用它: @Pointcut("execution(* setHeight(..))") public void setters() {} @Before("se ...
  • 本页列出了一些不受支持的标准软件包。 任何依赖这些软件包的东西都可能不起作用...... 不支持这些包通常是Java 2平台标准版的一部分,不受Android支持。 java.applet中 java.awt中 java.beans中 java.lang.management java.rmi中 javax.accessibility中 javax.activity中 javax.imageio中 javax.management javax.naming中 javax.print中 javax.rmi中 ...
  • Spring-AOP专家 它比AspectJ使用起来更简单,因为您不必使用LTW( 加载时编织 )或AspectJ编译器。 当您使用基于Spring AOP的@Aspect注解时,可以更改AspectJ AOP。 这使用Proxy模式和Decorator模式 Spring-AOP缺点 这是基于代理的AOP,所以基本上只能使用方法执行切入点。 在同一个类中调用另一个方法时,不适用方面。 可以有一点运行时开销。 Spring-AOP无法向Spring工厂未创建的任何内容添加一个方面 AspectJ专家 这支持所 ...
  • 把这两个依赖放在你的pom.xml中: org.aspectj aspectjrt 1.6.11 org.aspectj aspectjwe ...
  • Jetty 9.2.0是Jetty的第一个支持JDK8注释和类扫描的版本 。 我们使用了asm库的更新,以及一些api更改以支持新的JDK8字节码扫描。 你会想升级。 Jetty 9.2.0 is the first version of Jetty to support annotation and class scanning for JDK8. There was an update to the asm library we use, along with some api changes to s ...
  • Google流行的依赖注入库Guice可以在非最终注入的实例上执行AOP。 Google's popular dependency injection library Guice can perform AOP on non-final injected instances.
  • 您应该为您的ServiceLogAspect代码发生错误 。 这里有一个非常简单的例子,可以通过弹簧启动来添加AOP功能。 package com.example; // ...... importer @SpringBootApplication public class SpringBootAopApplication { public static void main(String[] args) { SpringApplication.run(SpringBootAopAp ...
  • 找到一些链接:看看它是否有用 FLOW3 http://flow3.typo3.org/documentation/manuals/flow3/flow3.aopframework/ http://weierophinney.net/matthew/archives/251-Aspects,-Filters,-and-Signals,-Oh,-My!.html 走! AOP框架 https://github.com/goaop/framework 锂 http://rad-dev.org/lithium h ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)